-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Why does onCtrlKey not works for the keys: page-down, page-up, left, right, etc. but for example for Ctrl-a.
<listbox id="listSection" sizedByContent="true" span="true" model="@load(vm.dataList)"
selectedItem="@bind(vm.selected)"
hflex="true" vflex="1" ctrlKeys="#pgdn#pgup^a" onCtrlKey="@command('ctrlKeyClick')">
<listhead>
<listheader label="test1"/>
<listheader label="test2"/>
<listheader label="test3"/>
<listheader label="test4"/>
</listhead>
<template name="model" var="item">
<listitem>
<listcell label="@load(item.value1)" />
<listcell label="@load(item.value2)" />
<listcell label="@load(item.value3)" />
<listcell label="@load(item.value4)" />
</listitem>
</template>
</listbox>
The keys are used already by Listbox to perform some default actions. If you would like to use them to perform other actions in Listbox, you have to orverride the doKeyDown_ function of it.
Asked: 2013-05-28 16:54:33 +0800
Seen: 13 times
Last updated: Jun 07 '13
How to get the deselected items on the onSelect event
Listbox's onCheck event should not be triggered when clicking the row
Sign out all desktops in a Session
ZK how to stop OnClick event of tab? [closed]
Execute Javascript on component visible
ZK Clustering, Session Replication Question [closed]