diff options
Diffstat (limited to 'src/findbar.cc')
-rw-r--r-- | src/findbar.cc | 11 |
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; |