Skip to content

Commit b5992d3

Browse files
authored
Merge pull request #13 from Maxou44/master
Add "plus" and "minus" aliases
2 parents af53ec1 + f9a61c3 commit b5992d3

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,21 +129,21 @@ You can handle one of more common keys by using an array of their names.
129129
| ; | 186, 59 |
130130
| = | 187, 61 |
131131
| , | 188, 44 |
132-
| - | 189, 45, 173, 109 |
132+
| - / minus | 189, 45, 173, 109 |
133133
| . | 190, 110 |
134134
| / | 191, 111 |
135135
| `| 192 |
136136
| [ | 219 |
137137
| \ | 220 |
138138
| ] | 221 |
139139
| \* | 106 |
140-
| + | 107 |
140+
| + / plus | 107 |
141141

142142
**Note**: Native keyboard events with modifier key(s) will **NOT** match common keys in `handleKeys`. e.g. `handleKeys=['a']` will not handler events with combined keys 'Ctrl' and 'a'. To match native keyboard event with modifiers, read the next section.
143143

144144
### Modifier keys
145145

146-
You can handle modifier key combined with a common keys by using key name in the format of `ctrl+a` or `ctrl+shift+a`:
146+
You can handle modifier key combined with a common keys by using key name in the format of `ctrl+a` or `ctrl+shift+a`. To use the `+` common key with modifier keys, use the alias key 'plus'. e.g. `ctrl+plus`.
147147

148148
```
149149
<KeyboardEventHandler

lib/react-keyboard-event-handler.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)