KeyStrokeAgent"
From Documentation
Line 5: | Line 5: | ||
− | All components that inherit <tt> HtmlBasedComponent </tt> support this operation. When calling <tt> stroke() </tt>, you have to provide special string for control keys. Please refer to [http://books.zkoss.org/wiki/ZK_Developer%27s_Reference/UI_Patterns/Keystroke_Handling]. | + | All components that inherit <tt> HtmlBasedComponent </tt> support this operation. When calling <tt> stroke() </tt>, you have to provide special string for control keys. Please refer to [http://books.zkoss.org/wiki/ZK_Developer%27s_Reference/UI_Patterns/Keystroke_Handling| Keystroke Handling in Developer's Reference]. |
For example, ''' ^#left ''' means ''Ctrl+Left'', and ''' @#f3 ''' means ''Alt+F3''. | For example, ''' ^#left ''' means ''Ctrl+Left'', and ''' @#f3 ''' means ''Alt+F3''. |
Revision as of 03:55, 14 May 2012
All components that inherit HtmlBasedComponent support this operation. When calling stroke() , you have to provide special string for control keys. Please refer to Keystroke Handling in Developer's Reference.
For example, ^#left means Ctrl+Left, and @#f3 means Alt+F3.
component.as(KeyStrokeAgent.class).stroke("$#left");