changeset 2040:6c012332ba15

Bound CTRL+{a,e,d,k} in the location bar (for start,end,del,cut)
author Jorge Arellano Cid <jcid@dillo.org>
date Wed, 18 May 2011 14:22:14 -0400
parents 45541ab7b1cc
children 034d4d1baf33
files src/ui.cc
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ui.cc	Wed May 18 14:05:55 2011 -0400
+++ b/src/ui.cc	Wed May 18 14:22:14 2011 -0400
@@ -119,7 +119,16 @@
             return 0;
          }
       } else if (modifier == FL_CTRL) {
-         if (k == 'l') {
+         if (k == 'a' || k == 'e') {
+            position(k == 'a' ? 0 : size());
+            return 1;
+         } else if (k == 'k') {
+            cut(position(), size());
+            return 1;
+         } else if (k == 'd') {
+            cut(position(), position()+1);
+            return 1;
+         } else if (k == 'l') {
             // Make text selected when already focused.
             position(size(), 0);
             return 1;