Hi,
The shortcut names ‘PAGE_DOWN’ and ‘PAGE_UP’ does not result in firing the specified method when pressing the PageDown and PageUp keyboard keys. Other keys (for example F11 or F12) do work ok.
I set these shortcuts only when I go into record view. I understand I must not use PageDown and PageUp when I am in table view…
Smartclient 5.2.2,
Windows XP and Vista.
Regards,
Lambert
This works fine for me in record view in smart client:
plugins.window.createShortcut('PAGE_DOWN', forms.categories.handleShortcut, 'categories');
Rob
Hi Rob,
In our framework :
plugins.window.createShortcut(‘F12’, globals.svy_nav_dc_next) does fire ok with F12 key
plugins.window.createShortcut(‘PAGE_DOWN’, globals.svy_nav_dc_next) does not fire with PageDown key
(The only thing I do to test is change the F12 to PAGE_DOWN and vice versa in our code)
As said : smart client record view.
I think it has to do with which form element has the focus. Example : a text area has pagedown and pageup key support…
Any info about this is welcome…
Lambert,
You are right, the working of this event depends on the focus.
If a scrolled pane already processed the page-down key we do not receive the event.
I don’t think we can do much about that.
In general, when a shortcut clashes with existing OS, browser or other keybindings we do not receive the event.
Rob
Hi Rob,
Thanks for the info. It’s clear now.
Regards,
plugins.window.createShortcut(‘Alt F2’, globals.myMethod) does not fire when pressing Alt+F2.
What could cause this when there is no equal shortcut key defined?
Hi Karel,
In webclient ? Compare behaviour with Smartclient. All browser shortcuts have precedence above yours created.
Apart from that I try to bind the shortcut to a form cause I’ve noticed the global createShortcut() misses the event sometimes (I have no proof).
Regards,
lwjwillemsen:
Hi Karel,
In webclient ? Compare behaviour with Smartclient. All browser shortcuts have precedence above yours created.
Apart from that I try to bind the shortcut to a form cause I’ve noticed the global createShortcut() misses the event sometimes (I have no proof).
Regards,
Hi Lambert,
Thanks for your input. My issue occurs in smart/debugclient using Servoy 6.0.4 on Windows 7.
I’ve also applied form binding, but that doesn’t seem to help either…