0

vlayout ctrlKey

asked 2016-04-18 18:25:34 +0800

intoxicadocoder gravatar image intoxicadocoder
57 1 1 4

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?

delete flag offensive retag edit

4 Answers

Sort by ยป oldest newest most voted
1

answered 2016-04-18 20:57:18 +0800

chillworld gravatar image chillworld flag of Belgium
5367 4 9
https://github.com/chillw...

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

link publish delete flag offensive edit
0

answered 2016-04-18 21:07:59 +0800

Darksu gravatar image Darksu
1991 1 4

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

link publish delete flag offensive edit
0

answered 2016-04-20 14:51:42 +0800

intoxicadocoder gravatar image intoxicadocoder
57 1 1 4

updated 2016-04-20 15:20:07 +0800

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

link publish delete flag offensive edit

Comments

I think that example is incorrect so I'll notify ZK for it.

chillworld ( 2016-04-20 15:26:23 +0800 )edit
1

fixed the doc

hawk ( 2016-04-21 06:25:47 +0800 )edit
0

answered 2016-04-21 06:18:03 +0800

Darksu gravatar image Darksu
1991 1 4

Hello intoxicadocoder,

I tested the example myself before posting it. Could you re-test it please?

Best Regards,

Darksu

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
1 follower

RSS

Stats

Asked: 2016-04-18 18:25:34 +0800

Seen: 28 times

Last updated: Apr 21 '16

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