0

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

asked 2009-03-26 10:34:39 +0800

cvarona gravatar image 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 flag offensive retag edit

5 Replies

Sort by » oldest newest

answered 2009-08-19 14:19:06 +0800

cvarona gravatar image 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.*.

link publish delete flag offensive edit

answered 2009-08-20 01:13:14 +0800

iantsai gravatar image iantsai
2755 1

can you provide your example about the listbox?

link publish delete flag offensive edit

answered 2009-08-20 07:35:57 +0800

cvarona gravatar image cvarona
554 1 6

updated 2009-08-20 07:37:22 +0800

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>

link publish delete flag offensive edit

answered 2009-08-24 01:16:30 +0800

iantsai gravatar image iantsai
2755 1

updated 2009-08-24 03:03:39 +0800

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.

link publish delete flag offensive edit

answered 2009-08-24 09:52:31 +0800

cvarona gravatar image 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

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-03-26 10:34:39 +0800

Seen: 418 times

Last updated: Aug 24 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More