Skip to content

Commit ebe532e

Browse files
authored
del redundant 'then'
1 parent 49fbecc commit ebe532e

File tree

1 file changed

+1
-1
lines changed
  • 2-ui/4-forms-controls/2-focus-blur/5-keyboard-mouse

1 file changed

+1
-1
lines changed

2-ui/4-forms-controls/2-focus-blur/5-keyboard-mouse/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
We can use `mouse.onclick` to handle the click and make the mouse "moveable" with `position:fixed`, then then `mouse.onkeydown` to handle arrow keys.
2+
We can use `mouse.onclick` to handle the click and make the mouse "moveable" with `position:fixed`, then `mouse.onkeydown` to handle arrow keys.
33

44
The only pitfall is that `keydown` only triggers on elements with focus. So we need to add `tabindex` to the element. As we're forbidden to change HTML, we can use `mouse.tabIndex` property for that.
55

0 commit comments

Comments
 (0)