# zk3.6.0: ctrl keys do not work on tabs under ff3

cvarona
554 1 6

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

delete retag edit

## 5 Replies

cvarona
554 1 6

As of the current zk version available in the online demo this problem remains the same. The same thing happens with listhead and listheader: it works ok in ie but fails in ff 3.*.

iantsai
2755 1

cvarona
554 1 6

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">
<listitem height="28px">
<listcell label="ZK Jet 0.8.0 is released" />
<listcell label="2008/11/17 17:41:29" />
</listitem>
<listitem height="28px">
<listcell label="URLs for iPhone-Optimized Google Sites" />
<listcell label="2008/11/17 15:56:37" />
</listitem>
<listitem height="28px">
<listcell label=" " />
<listcell label=" " />
<listcell label="Style Guide for ZK 3.5 released" />
<listcell label="2008/11/14 13:23:07" />
</listitem>
<listitem height="28px">
<listcell label=" " />
<listcell label="ZK Studio 0.9.0 released." />
<listcell label="2008/11/16 10:26:37" />
</listitem>
</listbox>
</vbox>
</window>

iantsai
2755 1

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.

cvarona
554 1 6

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

[hide preview]