1. When I register some key I do, for example, as
but now if I want to un-register one, I am forced to do it by
since the first one uses the KeyIdentifier and the second one the KeyName... and if I do this I lose both shortcuts...
What can I do if I want just to unregister one of them (besides of add again the other one after the unregistrarion)
2. I have noticed that shortcuts created via isc.Page.registerKey works ok when the focus is NOT in a FormItem... so is there a way to also fire the defined action in isc.Page.registerKey ALSO when the focus is in a FormItem.
I know that I can do it with the event keyPress of isc.FormItem... but I ask to do it in the same isc.Page.registerKey to avoid to the work twice
Regards.
David
Code:
isc.Page.registerKey({keyName: "H", ctrlKey: true, altKey: true}, action1); isc.Page.registerKey({keyName: "H", ctrlKey: true, shiftKey: true}, action2);
Code:
isc.Page.unregisterKey("H")
What can I do if I want just to unregister one of them (besides of add again the other one after the unregistrarion)
2. I have noticed that shortcuts created via isc.Page.registerKey works ok when the focus is NOT in a FormItem... so is there a way to also fire the defined action in isc.Page.registerKey ALSO when the focus is in a FormItem.
I know that I can do it with the event keyPress of isc.FormItem... but I ask to do it in the same isc.Page.registerKey to avoid to the work twice
Regards.
David