1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-27 22:35:45 +01:00

made macros muttator compatible

This commit is contained in:
Martin Stubenschrott
2008-05-05 20:30:06 +00:00
parent 04004ebb39
commit 2dc790a1e4
2 changed files with 8 additions and 1 deletions

View File

@@ -686,7 +686,13 @@ liberator.Events = function () //{{{
if (macros[lastMacro])
{
liberator.modes.isReplaying = true;
BrowserStop(); // make sure the page is stopped before starting to play the macro
// make sure the page is stopped before starting to play the macro
try
{
getWebNavigation().stop(nsIWebNavigation.STOP_ALL);
} catch (ex) { }
liberator.buffer.loaded = 1; // even if not a full page load, assume it did load correctly before starting the macro
liberator.events.feedkeys(macros[lastMacro], true); // true -> noremap
liberator.modes.isReplaying = false;