Page 1 of 1

Mnemonics

PostPosted: Fri Sep 03, 2010 12:04 pm
by lesouef
Mnemonics for windows under ... windows
I'd like to close all windows with Ctrl W, but using mnemonics only allows Alt W which is quite unusual under windows. and custom menus (where there are accelerators) cannot be used for forms shown with showFormInDialog as no code is executed after the form is displayed (modal). I also would like to use Escape also to leave such a window. any workaround, or shall I submit a feature req for this?

Re: Mnemonics

PostPosted: Fri Sep 03, 2010 12:47 pm
by mboegem
Take a look at the default shipped window plugin, especially the function: plugins.window.createShortcut( shortcut, method, [form_name])

Re: Mnemonics

PostPosted: Fri Sep 03, 2010 1:26 pm
by lesouef
I know, but how to set this with a modal dialog?

Re: Mnemonics

PostPosted: Sat Sep 04, 2010 9:56 am
by jcompagner
just a remark: Mnemonics are not the same as shortcuts actions, dont make the same mistake as Apple also does (telling me that those 2 are the same) shortcuts target direct actions and you cant have an unlimited supply of them (not enough keys/combos). Mnemonics walk tree's of menu's to a specific action and they are pretty much unlimited.

Re: Mnemonics

PostPosted: Sun Sep 05, 2010 3:26 pm
by lesouef
shorcut did it.
but could not find a way to get a menu in a sub window, they always go the main window...