Enter/cancel keyboard events
Posted: Mon Aug 07, 2017 7:01 am
It would be nice if you could capture enter and escape as OK and Cancel events in GUI. They could be sent as mouse events to the control with the focus...
Was specifically considering this about Upgrade Builder and Planner; which now has a drop list, but shows a field to specify a name when you click to save. Or, a new event type that from when any key is pressed; but that is probably overkill. (although if implemented as mouse buttons and then later as a generic key event, there will be conflicts)
propose defines.mouse_button.accept and defines.mouse_button.cancel.
existing mouse_button definitions...
defines.mouse_button_type.none
defines.mouse_button_type.left
defines.mouse_button_type.right
defines.mouse_button_type.middle
Was specifically considering this about Upgrade Builder and Planner; which now has a drop list, but shows a field to specify a name when you click to save. Or, a new event type that from when any key is pressed; but that is probably overkill. (although if implemented as mouse buttons and then later as a generic key event, there will be conflicts)
propose defines.mouse_button.accept and defines.mouse_button.cancel.
existing mouse_button definitions...
defines.mouse_button_type.none
defines.mouse_button_type.left
defines.mouse_button_type.right
defines.mouse_button_type.middle