Skip to content

Commit d805005

Browse files
committed
refactor(defaultTheme): remove legacy compat keydown event value
1 parent 3b2f492 commit d805005

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/tpl/defaultTheme/frontend/index.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -335,12 +335,6 @@
335335
var ARROW_LEFT = 'ArrowLeft';
336336
var ARROW_RIGHT = 'ArrowRight';
337337

338-
// IE/ClassicEdge specific key
339-
var UP = 'Up';
340-
var DOWN = 'Down';
341-
var LEFT = 'Left';
342-
var RIGHT = 'Right';
343-
344338
var SKIP_TAGS = ['INPUT', 'BUTTON', 'TEXTAREA'];
345339

346340
var PLATFORM = navigator.platform;
@@ -414,28 +408,24 @@
414408
if (canArrowMove(e)) {
415409
switch (e.key) {
416410
case ARROW_DOWN:
417-
case DOWN:
418411
if (isToEnd(e)) {
419412
return getLastFocusableSibling(itemList);
420413
} else {
421414
return getFocusableSibling(itemList, false);
422415
}
423416
case ARROW_UP:
424-
case UP:
425417
if (isToEnd(e)) {
426418
return getFirstFocusableSibling(itemList);
427419
} else {
428420
return getFocusableSibling(itemList, true);
429421
}
430422
case ARROW_RIGHT:
431-
case RIGHT:
432423
if (isToEnd(e)) {
433424
return getLastFocusableSibling(pathList);
434425
} else {
435426
return getFocusableSibling(pathList, false);
436427
}
437428
case ARROW_LEFT:
438-
case LEFT:
439429
if (isToEnd(e)) {
440430
return getFirstFocusableSibling(pathList);
441431
} else {

0 commit comments

Comments
 (0)