I think that example is incorrect so I'll notify ZK for it.
chillworld ( 2016-04-20 15:26:23 +0800 )edit-
FEATURED COMPONENTS
First time here? Check out the FAQ!
why removed ctrlKeys method in vlayout, this code does not work in zkoss 8.0.1
<vlayout
sclass="page-content"
ctrlKeys="^n@n"
onCtrlKey="@command('nuevoItem')"
>
I get this error: http://imgur.com/GGn9ecB
is another way to use ctrlKey in vlayout?
I'm thinking you are incorrect.
CtrlKeys is implemented in XulElement, and Vlayout never extended this one, also not in previous versions.
However Vbox does extends it. Vbox is a vlayout with more functionality so you can just use Vbox and it will work.
Greetz chill
Hello ntoxicadocoder,
For some reason it is not supported, so i will check it out in more detail.
Until then can you use vbox or even div as shown below:
http://zkfiddle.org/sample/124h278/2-Make-control-key-works-on-div-component
Best Regards,
Darksu
Thanks for your responses in the examples shows how to implement in vlayout but it does not work https://www.zkoss.org/wiki/ZKDeveloper'sReference/UIPatterns/KeystrokeHandling
I think that example is incorrect so I'll notify ZK for it.
chillworld ( 2016-04-20 15:26:23 +0800 )editAsked: 2016-04-18 18:25:34 +0800
Seen: 28 times
Last updated: Apr 21 '16