diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2011-05-18 14:22:14 -0400 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2011-05-18 14:22:14 -0400 |
commit | f4703fee483f6d65736e880e5a0963d9ff598b4d (patch) | |
tree | e352c86e8f3734e3c2cf677829110e79a9ada8e5 /src/ui.cc | |
parent | 6f569cdca6e2da6bbfb09152cd3006e22b8d2356 (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.cc | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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; |