1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-06 18:15:52 +01:00

Fix ;<up> throwing an error

This commit is contained in:
Martin Stubenschrott
2009-08-15 18:04:38 +02:00
parent 5b595b013b
commit 820b509eb3

View File

@@ -1300,7 +1300,10 @@ function CommandLine() //{{{
event.preventDefault();
event.stopPropagation();
history.select(/Up/.test(key), !/(Page|S-)/.test(key));
if (history)
history.select(/Up/.test(key), !/(Page|S-)/.test(key));
else
liberator.beep();
return false;
}
// user pressed TAB to get completions of a command