1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 12:04:12 +01:00

allow user mappings on page load again (thanks trapezoid!)

This commit is contained in:
Martin Stubenschrott
2008-04-01 16:41:29 +00:00
parent 7586b8281e
commit efa9a9c903

View File

@@ -783,7 +783,8 @@ liberator.Events = function () //{{{
evt.initKeyEvent("keypress", true, true, view, ctrl, alt, shift, meta, keyCode, charCode);
evt.noremap = noremap;
elem.dispatchEvent(evt)
if (!waitForPageLoaded()) // stop feeding keys if page loading failed
// stop feeding keys if page loading failed
if (liberator.modes.isReplaying && !waitForPageLoaded())
return;
}
return true;