You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _build/reference/1015-console-definekey.markdown
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
> DEFINEKEY k, sub
4
4
5
-
Binds a keystroke to a user defined function. To unbind the keystroke definition pass 0 as the `sub` argument.
5
+
Binds a keycode `k`to a user defined sub routine `sub`. When the key is pressed, the coresponding sub routine will be called. To unbind the keycode definition pass `0` as the `sub` argument.
6
6
7
7
Keycodes for PC keyboard
8
8
@@ -33,7 +33,7 @@ Keycodes for PC keyboard
33
33
| Shift + A to Z | asc("A") to asc("Z") |
34
34
35
35
36
-
## Examples
36
+
###Examples
37
37
38
38
Example 1: Bind keystroke for left and right arrow key
0 commit comments