Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
1.0-beta-4
-
None
-
None
Description
In order to create an action with an accelerator key, it is necessary to pass it an javax.swing.KeyStroke. It would be more convinient if the action could receive a string and convert it to a KeyStroke automatically.
Currently:
action( name: "Exit",
keyStroke: new javax.swing.KeyStroke( "control X" ),
closure:
)
After improvement:
action( name: "Exit",
keyStroke: "control X",
closure: { System.exit(0) }
)