We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eea2647 commit 087a967Copy full SHA for 087a967
src/VueSkipToList.vue
@@ -50,7 +50,7 @@ export default {
50
methods: {
51
handleKeydown ({ key, target }) {
52
const parent = target.parentElement
53
- const itemList = key === 'ArrowUp' ? parent.previousElementSibling : parent.nextElementSibling
+ const itemList = /(ArrowUp|Up)/g.test(key) ? parent.previousElementSibling : parent.nextElementSibling
54
55
if (!itemList) return
56
0 commit comments