mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-09 06:54:11 +01:00
Revert "Fix bug #189, <tab><cr> now uses first completion"
This reverts commit f18efe4ec792afb65c4bace11073526aef31725e.
This commit is contained in:
@@ -1298,15 +1298,8 @@ function CommandLine() //{{{
|
|||||||
// user pressed ENTER to carry out a command
|
// user pressed ENTER to carry out a command
|
||||||
// user pressing ESCAPE is handled in the global onEscape
|
// user pressing ESCAPE is handled in the global onEscape
|
||||||
// FIXME: <Esc> should trigger "cancel" event
|
// 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))
|
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
|
let mode = currentExtendedMode; // save it here, as modes.pop() resets it
|
||||||
keepCommand = true;
|
keepCommand = true;
|
||||||
currentExtendedMode = null; // Don't let modes.pop trigger "cancel"
|
currentExtendedMode = null; // Don't let modes.pop trigger "cancel"
|
||||||
|
|||||||
Reference in New Issue
Block a user