- 1 Getting started
- 2 Compile
- 3 Customize
- 4 Optimize
- 5 Debug
- 6 Non-standard extensions
- 7 System Routines
- 附录 A
- 附录 B
- 附录 E
- 附录 I
6.4 ACCEPT special keys
Special keys are available for extended ACCEPT
statements.
The COB-CRT-STATUS
values are in the screenio.cpy copy file.
6.4.1 Arrow keys
The Left-Arrow key moves the cursor to the left. Without AUTO-SKIP
the cursor stops at the beginning of the field. With AUTO-SKIP
it returns with the COB-SCR-KEY-LEFT
value of 2009. See AUTO-SKIP.
The Alt-Left-Arrow key is the same as Left-Arrow except that it never returns, even for AUTO-SKIP
.
The Right-Arrow key moves the cursor to the right. Without AUTO-SKIP
the cursor stops at the end of the field. With AUTO-SKIP
it returns with the COB-SCR-KEY-RIGHT
value of 2010. See AUTO-SKIP.
The Alt-Right-Arrow key is the same as Right-Arrow except that it never returns, even for AUTO-SKIP
.
6.4.2 Backspace key
The Backspace key moves the cursor, and the remainder of the text, to the left.
6.4.3 Delete keys
The Delete key deletes the cursor’s character and moves the remainder of the text to the left. The cursor does not move.
The Alt-Delete key deletes all text from the cursor to the end of the field.
6.4.4 End key
The End key moves the cursor after the last non-space character. Pressing the End key again moves the cursor to the end of the field. Repeated pressing moves the cursor back and forth.
6.4.5 Home key
The Home key moves the cursor to the first non-space character. Pressing the Home key again moves the cursor to the beginning of the field. Repeated pressing moves the cursor back and forth.
6.4.6 Insert key
The Insert key changes the insert mode.
The value of the insert mode is used in all following ACCEPT
statements while the program is running.
When the insert mode is on, typed characters move the existing characters to the right until field is full. When it is off, typed characters type over existing characters.
Note: The insert mode is ignored for fields with a size of 1.
The insert mode can also be changed by the COB_INSERT_MODE
setting at any time, see Runtime Configuration.
6.4.7 Tab keys
The Tab key returns from the ACCEPT
with the COB-SCR-TAB
value of 2007.
The Shift-Tab key returns with the COB-SCR-BACK-TAB
value of 2008.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论