From 3c9ba896c8e0ba07070b22821da0e3b6f14d481d Mon Sep 17 00:00:00 2001 From: Daniel Bainton Date: Tue, 26 Aug 2008 12:28:51 +0000 Subject: [PATCH] Adding D keybinding to textarea editing to delete everything until EOL Thanks Daniel Schaffrath for the patch --- content/editor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/editor.js b/content/editor.js index b853d690..d2140318 100644 --- a/content/editor.js +++ b/content/editor.js @@ -323,6 +323,10 @@ liberator.Editor = function () //{{{ }, { flags: liberator.Mappings.flags.COUNT }); + liberator.mappings.add([liberator.modes.TEXTAREA], + ["D"], "Delete the characters under the cursor until the end of the line", + function () { liberator.editor.executeCommand("cmd_deleteToEndOfLine"); }); + liberator.mappings.add([liberator.modes.TEXTAREA], ["o"], "Open line below current", function (count)