0

Ctrlkey pgdn/pgup does not work for listbox

asked 2013-05-28 16:54:33 +0800

kamp13 gravatar image kamp13
0

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>
delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-06-07 09:50:00 +0800

francishsiao gravatar image francishsiao
145 2

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.

link publish delete flag offensive edit
Your answer
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
2 followers

RSS

Stats

Asked: 2013-05-28 16:54:33 +0800

Seen: 13 times

Last updated: Jun 07 '13

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