-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
I want to catch key events (space bar press, esc, enter, ...) in ZK. On the whole page.
Is this possible?
Thanks Martin
U can catch certain key events in <window>.
Please ref the developer's guide, search "The ctrlKeys Property".this
And U can "Add and Remove Event Listeners to Pages Dynamically", also in developer's guide.
"...
all events of the specified name the are sent to any components of the specified page will be sent to the listener.
..."
Wish above information can help U.
Hello
thanks or this hint. This sound good.
I wrote this code but nothing happens. What is wrong?
<window title="My First Window" border="normal" width="200px" ctrlKeys="#del" onCtrlKey="alert("Del pressed!");">
Hello, World!
</window>
Keyboard events are only possible on input elements.
Try this example.
<window id="win" title="My First Window" border="normal" width="200px" ctrlKeys="#del" onCtrlKey="alert("Del pressed!");"> <label value="Hello, World!"/> <textbox id="input"/> <zscript> input.focus(); </zscript> </window>
/Robert
please help me how to add,delete,uodate and view the list value in the databases
@Manish77: shouldn't you open a dedicated post? BTW, documentation is full of great resources from DB back ended MVC patterns...
Asked: 2008-10-03 08:29:50 +0800
Seen: 885 times
Last updated: Apr 20 '11