KeyStrokeAgent"

From Documentation
(2 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
= Stroke =
 
= Stroke =
  
'''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].
+
'''All components that inherit <tt> HtmlBasedComponent </tt> supports 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''.
Line 16: Line 16:
  
 
</source>
 
</source>
 
  
 
=Supported Components=
 
=Supported Components=
Line 31: Line 30:
  
  
 +
 +
{{ZATSEssentialsPageHeader}}
 
{{ZATSEssentialsPageFooter}}
 
{{ZATSEssentialsPageFooter}}

Revision as of 08:16, 21 June 2012




Stroke

All components that inherit HtmlBasedComponent supports 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");

Supported Components

Components
Version
Note
Sub-class of HtmlBasedComponent 5, 6





Last Update : 2012/06/21

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.