From d79224b4cdffa03ef0a39f6a330def88abc578df Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Fri, 6 Jun 2008 13:15:12 +0000 Subject: [PATCH] added ctrl-{home,end} mappings to insert mode --- content/editor.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/content/editor.js b/content/editor.js index 4be12365..e3bfb3de 100644 --- a/content/editor.js +++ b/content/editor.js @@ -261,6 +261,14 @@ liberator.Editor = function () //{{{ [""], "Delete character to the right", function () { liberator.editor.executeCommand("cmd_deleteCharForward", 1); }); + liberator.mappings.add(modes, + [""], "Move cursor to beginning of text field", + function () { liberator.editor.executeCommand("cmd_moveTop", 1); }); + + liberator.mappings.add(modes, + [""], "Move cursor to end of text field", + function () { liberator.editor.executeCommand("cmd_moveBottom", 1); }); + liberator.mappings.add(modes, [""], "Insert clipboard/selection", function () { liberator.editor.pasteClipboard(); });