Class SWTKeySupport
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyStrokeconvertAcceleratorToKeyStroke(int accelerator) Deprecated, for removal: This API element is subject to removal in a future version.Given an SWT accelerator value, provide the corresponding key stroke.static intDeprecated, for removal: This API element is subject to removal in a future version.Converts the given event into an SWT accelerator value -- considering the modified character with the shift modifier.static intDeprecated, for removal: This API element is subject to removal in a future version.Converts the given event into an SWT accelerator value -- considering the unmodified character with all modifier keys.static intDeprecated, for removal: This API element is subject to removal in a future version.Converts the given event into an SWT accelerator value -- considering the unmodified character with all modifier keys.static intDeprecated, for removal: This API element is subject to removal in a future version.Converts the given event into an SWT accelerator value -- considering the modified character without the shift modifier.static intconvertKeyStrokeToAccelerator(KeyStroke keyStroke) Deprecated, for removal: This API element is subject to removal in a future version.Given a key stroke, this method provides the equivalent SWT accelerator value.static IKeyFormatterDeprecated, for removal: This API element is subject to removal in a future version.Provides an instance ofIKeyFormatterappropriate for the current instance.
-
Method Details
-
convertAcceleratorToKeyStroke
Deprecated, for removal: This API element is subject to removal in a future version.Given an SWT accelerator value, provide the corresponding key stroke.- Parameters:
accelerator- The accelerator to convert; should be a valid SWT accelerator value.- Returns:
- The equivalent key stroke; never
null.
-
convertEventToModifiedAccelerator
Deprecated, for removal: This API element is subject to removal in a future version.Converts the given event into an SWT accelerator value -- considering the modified character with the shift modifier. This is the third accelerator value that should be checked.
For example, on a standard US keyboard, "Ctrl+Shift+5" would be viewed as "Ctrl+Shift+%".
- Parameters:
event- The event to be converted; must not benull.- Returns:
- The combination of the state mask and the unmodified character.
-
convertEventToUnmodifiedAccelerator
Deprecated, for removal: This API element is subject to removal in a future version.Converts the given event into an SWT accelerator value -- considering the unmodified character with all modifier keys. This is the first accelerator value that should be checked. However, all alphabetic characters are considered as their uppercase equivalents.
For example, on a standard US keyboard, "Ctrl+Shift+5" would be viewed as "Ctrl+Shift+5".
- Parameters:
event- The event to be converted; must not benull.- Returns:
- The combination of the state mask and the unmodified character.
-
convertEventToUnmodifiedAccelerator
Deprecated, for removal: This API element is subject to removal in a future version.Converts the given event into an SWT accelerator value -- considering the unmodified character with all modifier keys. This is the first accelerator value that should be checked. However, all alphabetic characters are considered as their uppercase equivalents.
For example, on a standard US keyboard, "Ctrl+Shift+5" would be viewed as "Ctrl+%".
- Parameters:
event- The event to be converted; must not benull.- Returns:
- The combination of the state mask and the unmodified character.
-
convertEventToUnshiftedModifiedAccelerator
Deprecated, for removal: This API element is subject to removal in a future version.Converts the given event into an SWT accelerator value -- considering the modified character without the shift modifier. This is the second accelerator value that should be checked. Key strokes with alphabetic natural keys are run throughconvertEventToUnmodifiedAccelerator- Parameters:
event- The event to be converted; must not benull.- Returns:
- The combination of the state mask without shift, and the modified character.
-
convertKeyStrokeToAccelerator
Deprecated, for removal: This API element is subject to removal in a future version.Given a key stroke, this method provides the equivalent SWT accelerator value. The functional inverse ofconvertAcceleratorToKeyStroke.- Parameters:
keyStroke- The key stroke to convert; must not benull.- Returns:
- The SWT accelerator value
-
getKeyFormatterForPlatform
Deprecated, for removal: This API element is subject to removal in a future version.Provides an instance ofIKeyFormatterappropriate for the current instance.- Returns:
- an instance of
IKeyFormatterappropriate for the current instance; nevernull.
-
SWTKeySupport