1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 00:17:58 +01:00

Fix bug #189, <tab><cr> now uses first completion

On discussion with maxauthority this is probably the best way of doing
things for now.
This commit is contained in:
Conrad Irwin
2009-03-18 00:45:47 +00:00
parent 924aba8f54
commit 238e45482c

View File

@@ -1298,8 +1298,15 @@ function CommandLine() //{{{
// user pressed ENTER to carry out a command
// user pressing ESCAPE is handled in the global onEscape
// FIXME: <Esc> should trigger "cancel" event
// FIXME: This should not be waiting, some kind of callback mechanism on completion would be better.
if (events.isAcceptKey(key))
{
while (completions.context.incomplete)
{
liberator.threadYield(true);
command = this.command;
}
let mode = currentExtendedMode; // save it here, as modes.pop() resets it
keepCommand = true;
currentExtendedMode = null; // Don't let modes.pop trigger "cancel"