StyledText.getKeyBinding

Returns the action assigned to the key. Returns SWT.NULL if there is no action associated with the key.

@param key a key code defined in SWT.java or a character. Optionally ORd with a state mask. Preferred state masks are one or more of SWT.MOD1, SWT.MOD2, SWT.MOD3, since these masks account for modifier platform differences. However, there may be cases where using the specific state masks (i.e., SWT.CTRL, SWT.SHIFT, SWT.ALT, SWT.COMMAND) makes sense. @return one of the predefined actions defined in ST.java or SWT.NULL if there is no action associated with the key. @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 StyledText
int
getKeyBinding
(
int key
)

Meta