MenuItem.getAccelerator

Returns the widget accelerator. An accelerator is the bit-wise OR of zero or more modifier masks and a key. Examples: <code>SWT.CONTROL | SWT.SHIFT | 'T', SWT.ALT | SWT.F2</code>. The default value is zero, indicating that the menu item does not have an accelerator.

@return the accelerator or 0

</ul> @exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul>

class MenuItem
int
getAccelerator
(
)

Meta