summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2011-07-27 14:32:07 -0400
committerJorge Arellano Cid <jcid@dillo.org>2011-07-27 14:32:07 -0400
commit088c9f87456944790625e772e3d7f1c406f8ed7c (patch)
treeabc4fe7bfc029c2dab553e0ca9a0585571e9e1c6 /src
parentc22d88b07fe4621793a2086f929c8643cd2e1631 (diff)
Enabled CTRL+{a,e,d,k} in the findbar
Diffstat (limited to 'src')
-rw-r--r--src/findbar.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/findbar.cc b/src/findbar.cc
index 02f9545b..4c881755 100644
--- a/src/findbar.cc
+++ b/src/findbar.cc
@@ -41,6 +41,17 @@ int MyInput::handle(int e)
// Let these keys get to the UI
return 0;
}
+ } else if (modifier == FL_CTRL) {
+ 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 == FL_Escape && modifier == 0) {
// Avoid clearing the text with Esc, just hide the findbar.
return 0;