Skip to content

Commit 827ef24

Browse files
authored
smth
1 parent 26b7ed5 commit 827ef24

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

2-ui/3-event-details/1-mouse-events-basics/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195

196196
События мыши имеют следующие свойства:
197197

198-
- Кнопка: `which`.
198+
- Кнопка: `button`.
199199
- Клавиши-модификаторы (`true` если нажаты): `altKey`, `ctrlKey`, `shiftKey` и `metaKey` (Mac).
200200
- Если вы планируете обработать `key:Ctrl`, то не забудьте, что пользователи Mac обычно используют `key:Cmd`, поэтому лучше проверить `if (e.metaKey || e.ctrlKey)`.
201201

2-ui/3-event-details/1-mouse-events-basics/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
function logMouse(e) {
2626
let evt = e.type;
2727
while (evt.length < 11) evt += ' ';
28-
showmesg(evt + " which=" + e.which, 'test')
28+
showmesg(evt + " button=" + e.button, 'test')
2929
return false;
3030
}
3131

0 commit comments

Comments
 (0)