summaryrefslogtreecommitdiff
path: root/src/ui.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2011-05-18 14:22:14 -0400
committerJorge Arellano Cid <jcid@dillo.org>2011-05-18 14:22:14 -0400
commitf4703fee483f6d65736e880e5a0963d9ff598b4d (patch)
treee352c86e8f3734e3c2cf677829110e79a9ada8e5 /src/ui.cc
parent6f569cdca6e2da6bbfb09152cd3006e22b8d2356 (diff)
Bound CTRL+{a,e,d,k} in the location bar (for start,end,del,cut)
Diffstat (limited to 'src/ui.cc')
-rw-r--r--src/ui.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/ui.cc b/src/ui.cc
index 9be4d60b..fa5588da 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -119,7 +119,16 @@ int CustInput::handle(int e)
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;