summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;