-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
after upgrading to zk3.6.0 some ctrl keys I had defined on the tabs of a certain form have ceased to work under ff3 (they still work ok in ie7). It's easy to reproduce on the online demo as long as the chosen ctrl key combination doesn't match any browser-predefined:
<hbox> <tabbox width="250px"> <tabs> <tab label="Tab 1" closable="true" ctrlKeys="^m" onCtrlKey='alert( "gasp!" )'/> <tab label="Tab 2" closable="true"/> <tab label="Tab 3" closable="true"/> <tab label="Tab 4" closable="true"/> <tab label="Tab 5" closable="true"/> </tabs> <tabpanels> <tabpanel>This is panel 1</tabpanel> <tabpanel>This is panel 2 The second panel</tabpanel> <tabpanel>This is panel 3</tabpanel> <tabpanel>This is panel 4</tabpanel> <tabpanel>This is panel 5</tabpanel> </tabpanels> </tabbox> </hbox>
Pressing ctrl-m after selecting the first tab will raise a popup in ie but not in ff. I do not know what your experience with this matter has been so far but I think it might be a bug.
With kind regards
César Varona
Avec plaisir:
<window title="Listbox" border="normal"> <vbox width="100%"> <zscript> void go() { Messagebox.show(event.getKeyCode()+" is pressed on " + event.getTarget(), "CtrlKey", Messagebox.OK, Messagebox.EXCLAMATION); } </zscript> <separator bar="true"/> <listbox fixedLayout="true"> <listhead sizable="true" ctrlKeys="^c" onCtrlKey="go();"> <listheader align="center" width="40px" image="/img/Centigrade-Widget-Icons/ArrowsUpDown-16x16.png" ctrlKeys="^f" onCtrlKey="go();" /> <listheader align="center" width="40px" image="/img/Centigrade-Widget-Icons/Envelope-16x16.png" /> <listheader align="center" width="40px" image="/img/Centigrade-Widget-Icons/PaperClip-16x16.png" /> <listheader label="Subject" sort="auto"/> <listheader label="Received" sort="auto"/> </listhead> <listitem height="28px"> <listcell image="/img/Centigrade-Widget-Icons/ArrowUpOrange-16x16.png" /> <listcell image="/img/Centigrade-Widget-Icons/EnvelopeOpen-16x16.png" /> <listcell image="/img/Centigrade-Widget-Icons/PaperClip-16x16.png" /> <listcell label="ZK Jet 0.8.0 is released" /> <listcell label="2008/11/17 17:41:29" /> </listitem> <listitem height="28px"> <listcell image="/img/Centigrade-Widget-Icons/ArrowDown-16x16.png" /> <listcell image="/img/Centigrade-Widget-Icons/Envelope-16x16.png" /> <listcell image="/img/Centigrade-Widget-Icons/PaperClip-16x16.png" /> <listcell label="URLs for iPhone-Optimized Google Sites" /> <listcell label="2008/11/17 15:56:37" /> </listitem> <listitem height="28px"> <listcell label=" " /> <listcell image="/img/Centigrade-Widget-Icons/EnvelopeOpen-16x16.png" /> <listcell label=" " /> <listcell label="Style Guide for ZK 3.5 released" /> <listcell label="2008/11/14 13:23:07" /> </listitem> <listitem height="28px"> <listcell image="/img/Centigrade-Widget-Icons/ArrowUpOrange-16x16.png" /> <listcell image="/img/Centigrade-Widget-Icons/EnvelopeOpen-16x16.png" /> <listcell label=" " /> <listcell label="ZK Studio 0.9.0 released." /> <listcell label="2008/11/16 10:26:37" /> </listitem> </listbox> </vbox> </window>
I can't run both case.
but I can trigger onCtrlKey() if there is a texbox or any component that can put focus on it.
You need a focus as an anchor.
It's difficult to tell what you're trying to mean. If you mean "ctrl-* works on tabs, listheads and listheaders on my own ff" all I can say is "it used to do so in zk versions prior to zk3.6 but not any longer". It suffices to click on the tab or listhead/listheader and press the key combination: it will work in ie but not in ff. I'm not talking about making it work on a textbox. As for the focus, it might not manifest itself visually in the case of listheads and listheaders, but it definitely does for tabs in most widget sets. Zk<3.6 accepted ctrl keys for these components in both ie and ff. Zk3.6.* still does under ie. I think it's either a bug coming from the zk 3.6 version no one pay heed of, since it's rather unusual to set up a ctrl keys trigger on components like those, or it has just worked so far by chance and there was no real intention to make tabs, listhead and listheaders trigger ctrl key events. In the latter case I think I'd like to know it for sure, in order to replace any ctrl key event trigger like those it might remain in my forms.
With kind regards
Asked: 2009-03-26 10:34:39 +0800
Seen: 418 times
Last updated: Aug 24 '09