mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 00:32:27 +01:00
Fix 'Y' to not falsely show the caret if we're not in caret mode, thanks for the patch to John-Galt
This commit is contained in:
@@ -678,10 +678,12 @@ liberator.Buffer = function () //{{{
|
|||||||
.getInterface(Components.interfaces.nsISelectionDisplay)
|
.getInterface(Components.interfaces.nsISelectionDisplay)
|
||||||
.QueryInterface(Components.interfaces.nsISelectionController);
|
.QueryInterface(Components.interfaces.nsISelectionController);
|
||||||
|
|
||||||
|
var caretmode = selectionController.getCaretEnabled();
|
||||||
selectionController.setCaretEnabled(true);
|
selectionController.setCaretEnabled(true);
|
||||||
selectionController.wordMove(false, false);
|
selectionController.wordMove(false, false);
|
||||||
selectionController.wordMove(true, true);
|
selectionController.wordMove(true, true);
|
||||||
selection = window.content.getSelection().toString();
|
selection = window.content.getSelection().toString();
|
||||||
|
selectionController.setCaretEnabled(caretmode);
|
||||||
}
|
}
|
||||||
|
|
||||||
return selection;
|
return selection;
|
||||||
|
|||||||
Reference in New Issue
Block a user