1
0
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:
Martin Stubenschrott
2007-09-18 22:27:52 +00:00
parent 6060c59359
commit 1e15906810
5 changed files with 240 additions and 29 deletions

View File

@@ -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()