mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 08:07:59 +01:00
- fixed generating artificial firefox commands with feedkeys()/:norm/:map
- home/end/etc. keys work again in the location bar - <c-v><c-k>, etc. work again to focus special form fields - small formatting improvements
This commit is contained in:
@@ -25,16 +25,19 @@ function Editor() //{{{
|
||||
|
||||
function editor()
|
||||
{
|
||||
return window.document.commandDispatcher.focusedElement;
|
||||
var editor = window.document.commandDispatcher.focusedElement;
|
||||
if (editor && editor.mInputField)
|
||||
editor = editor.mInputField;
|
||||
return editor;
|
||||
}
|
||||
|
||||
function getController()
|
||||
{
|
||||
var el = window.document.commandDispatcher.focusedElement;
|
||||
if (!el || !el.controllers)
|
||||
var editor = editor();
|
||||
if (!editor || !editor.controllers)
|
||||
return null;
|
||||
|
||||
return el.controllers.getControllerAt(0);
|
||||
return editor.controllers.getControllerAt(0);
|
||||
}
|
||||
|
||||
this.line = function()
|
||||
|
||||
Reference in New Issue
Block a user