mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 23:02:27 +01:00
Dont allow <holding-tab> to lag
This commit is contained in:
@@ -1493,7 +1493,7 @@ function Completion() //{{{
|
|||||||
context.fork("keyword/" + keyword, keyword.length + space.length, null, function (context) {
|
context.fork("keyword/" + keyword, keyword.length + space.length, null, function (context) {
|
||||||
context.format = history.format;
|
context.format = history.format;
|
||||||
context.title = [keyword + " Quick Search"];
|
context.title = [keyword + " Quick Search"];
|
||||||
context.background = true;
|
// context.background = true;
|
||||||
context.compare = null;
|
context.compare = null;
|
||||||
context.generate = function () {
|
context.generate = function () {
|
||||||
let [begin, end] = item.url.split("%s");
|
let [begin, end] = item.url.split("%s");
|
||||||
|
|||||||
@@ -74,9 +74,6 @@ const modes = (function () //{{{
|
|||||||
// for its cleanup here
|
// for its cleanup here
|
||||||
function handleModeChange(oldMode, newMode)
|
function handleModeChange(oldMode, newMode)
|
||||||
{
|
{
|
||||||
// TODO: fix v.log() to work with verbosity level
|
|
||||||
//liberator.log("switching from mode " + oldMode + " to mode " + newMode, 7);
|
|
||||||
//liberator.dump("switching from mode " + oldMode + " to mode " + newMode + "\n");
|
|
||||||
|
|
||||||
switch (oldMode)
|
switch (oldMode)
|
||||||
{
|
{
|
||||||
@@ -220,7 +217,6 @@ const modes = (function () //{{{
|
|||||||
reset: function (silent)
|
reset: function (silent)
|
||||||
{
|
{
|
||||||
modeStack = [];
|
modeStack = [];
|
||||||
liberator.dump("reset");
|
|
||||||
if (config.isComposeWindow)
|
if (config.isComposeWindow)
|
||||||
this.set(modes.COMPOSE, modes.NONE, silent);
|
this.set(modes.COMPOSE, modes.NONE, silent);
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -1095,8 +1095,7 @@ function CommandLine() //{{{
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|
||||||
// tabTimer.tell(event);
|
tabTimer.tell(event);
|
||||||
completions.tab(event.shiftKey);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if (key == "<BS>")
|
else if (key == "<BS>")
|
||||||
@@ -1118,6 +1117,11 @@ function CommandLine() //{{{
|
|||||||
}
|
}
|
||||||
return true; // allow this event to be handled by Firefox
|
return true; // allow this event to be handled by Firefox
|
||||||
}
|
}
|
||||||
|
else if (event.type == "keyup")
|
||||||
|
{
|
||||||
|
if (key == "<Tab>" || key == "<S-Tab>")
|
||||||
|
tabTimer.flush();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onMultilineInputEvent: function onMultilineInputEvent(event)
|
onMultilineInputEvent: function onMultilineInputEvent(event)
|
||||||
|
|||||||
Reference in New Issue
Block a user