mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 00:27:57 +01:00
Fix wim=""
This commit is contained in:
@@ -265,7 +265,9 @@ function CommandLine() //{{{
|
|||||||
case this.RESET:
|
case this.RESET:
|
||||||
idx = null;
|
idx = null;
|
||||||
break;
|
break;
|
||||||
default: idx = Math.max(0, Math.max(this.items.length - 1, idx));
|
default:
|
||||||
|
idx = Math.max(0, Math.min(this.items.length - 1, idx));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
this.itemList.selectItem(idx);
|
this.itemList.selectItem(idx);
|
||||||
if (idx < 0 || idx >= this.items.length || idx == null)
|
if (idx < 0 || idx >= this.items.length || idx == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user