I need to add keyboard shortcuts to an SWT dialog in an Eclipse RCP application.
Is it possible to add shortcut using the messages.properties
file, without any coding/programming needed?
If you place an ampersand character in the messassages.properties entry then you can use ALT+character to select the field after the Label that uses the property.
For example, if you have a username Text box and a Label that uses:
MyDialog_username=&Username
Then pressing ALT+u will select the username field.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.