Skip to content

Commit 19d4708

Browse files
authored
Update 1015-console-definekey.markdown
1 parent ff603d3 commit 19d4708

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

_build/reference/1015-console-definekey.markdown

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> DEFINEKEY k, sub
44
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.
66

77
Keycodes for PC keyboard
88

@@ -33,7 +33,7 @@ Keycodes for PC keyboard
3333
| Shift + A to Z | asc("A") to asc("Z") |
3434

3535

36-
## Examples
36+
### Examples
3737

3838
Example 1: Bind keystroke for left and right arrow key
3939

@@ -57,13 +57,13 @@ wend
5757
```
5858

5959

60-
Example 2: Unbind a keystroke
60+
### Example 2: Unbind a keystroke
6161

6262
```
6363
DEFINEKEY 0xFF04, 0
6464
```
6565

66-
Example 3: Etch-a-Sketch
66+
### Example 3: Etch-a-Sketch
6767

6868
```
6969
' DEFINEKEY demo.bas SmallBASIC 0.12.2 [B+=MGA] 2016-03-30
@@ -131,7 +131,7 @@ sub quit
131131
end
132132
```
133133

134-
Example 4: This example is outdated and just a reference for buttons in PALM OS
134+
### Example 4: This example is outdated and just a reference for buttons in PALM OS
135135

136136
```
137137
' Note:

0 commit comments

Comments
 (0)