KeyStrokeAgent"
From Documentation
(Created page with "{{ZATSEssentialsPageHeader}} All components that inherit <tt> HtmlBasedComponent </tt> support this operation. When calling <tt> stroke() </tt>, you have to provide special ...") |
m (correct highlight (via JWB)) |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
+ | __TOC__ | ||
+ | = Stroke = | ||
− | All components that inherit < | + | '''All components that inherit <code> HtmlBasedComponent </code> supports this operation'''. When calling <code> stroke() </code>, 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''. | ||
− | + | <source lang="java"> | |
component.as(KeyStrokeAgent.class).stroke("$#left"); | component.as(KeyStrokeAgent.class).stroke("$#left"); | ||
− | |||
+ | </source> | ||
+ | =Supported Components= | ||
+ | |||
+ | {| border="1" | width="100%" | ||
+ | ! <center>Components</center> | ||
+ | ! <center>Version</center> | ||
+ | ! <center>Note</center> | ||
+ | |- | ||
+ | | Sub-class of <javadoc> org.zkoss.zk.ui.HtmlBasedComponent </javadoc> | ||
+ | | 5, 6 | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | |||
+ | |||
+ | {{ZATSEssentialsPageHeader}} | ||
{{ZATSEssentialsPageFooter}} | {{ZATSEssentialsPageFooter}} |
Latest revision as of 02:55, 18 January 2022
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
Sub-class of HtmlBasedComponent | 5, 6 |