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

fixed MOW message stacking and some small speed improvements

This commit is contained in:
Martin Stubenschrott
2007-10-30 14:06:45 +00:00
parent 664782bc36
commit 3795b74979
3 changed files with 23 additions and 14 deletions

View File

@@ -508,14 +508,16 @@ vimperator.Events = function() //{{{
break;
case vimperator.modes.CARET:
// setting this option will trigger an observer which will care about all other details
// like setting the NORMAL mode
// setting this option will trigger an observer which will
// care about all other details like setting the NORMAL mode
vimperator.options.setFirefoxPref("accessibility.browsewithcaret", false);
break;
case vimperator.modes.INSERT:
if ((vimperator.modes.extended & vimperator.modes.TEXTAREA) && !vimperator.options["insertmode"])
{
vimperator.mode = vimperator.modes.TEXTAREA;
}
else
{
vimperator.modes.reset();
@@ -527,9 +529,11 @@ vimperator.Events = function() //{{{
default:
// clear any selection made
var selection = window.content.getSelection();
try { // a simple if (selection) does not work
try
{ // a simple if (selection) does not seem to work
selection.collapseToStart();
} catch (e) { }
}
catch (e) { }
vimperator.commandline.clear();
vimperator.modes.reset();