Closed narimiran closed 6 years ago
Not for Windows. https://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts
@narimiran I think the shortcut should NOT be added in general to NiGui. But you can do this in your application. I have just implemented it.
Example code:
window.onKeyDown = proc(event: KeyboardEvent) =
# Ctrl + Q -> Quit application
if Key_Q.isDown() and (Key_ControlL.isDown() or Key_ControlR.isDown()):
app.quit()
Thanks for adding it to the examples. I'll close this.
Currently window can be closed with
Alt+F4
. CanCtrl+Q
be added, as it is quite common shortcut for that?