1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-07 06:55:45 +01:00

Fix input buffer related hint bugs.

Spurious "null"s in input fields and key event swallowing following f1<Return>
etc.
This commit is contained in:
Doug Kearns
2009-09-30 15:41:49 +10:00
parent 748eb68167
commit 422579f6e2

View File

@@ -1547,7 +1547,7 @@ function Events() //{{{
|| (/^[0-9]$/.test(key) && !hints.escNumbers))
{
hints.onEvent(event);
input.buffer = null;
input.buffer = "";
return void killEvent();
}
@@ -1674,8 +1674,7 @@ function Events() //{{{
finally
{
let motionMap = (input.pendingMotionMap && input.pendingMotionMap.names[0]) || "";
if (input.buffer !== null)
statusline.updateInputBuffer(motionMap + input.buffer);
statusline.updateInputBuffer(motionMap + input.buffer);
}
},