aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2012-12-30 23:09:16 +0000
committercorvid <corvid@lavabit.com>2012-12-30 23:09:16 +0000
commit432c6c244345bed34ec2ce811688b3063b93b387 (patch)
tree600e1340cec2978956875546194a115fee026f28
parentf80b0138048d14f7a791428b25d5d1ef37d76fd4 (diff)
don't let form Input eat ctrl-H, either
The other day, I saw how it uses it for backspace, and I'd left it partly because it reminds me of older unixness, but then I was reminded how ctrl-h is our default to go to the home page, so...
-rw-r--r--dw/fltkui.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc
index 65c54f69..69473cb9 100644
--- a/dw/fltkui.cc
+++ b/dw/fltkui.cc
@@ -75,9 +75,10 @@ int CustInput2::handle(int e)
} else if (k == 'd') {
cut(position(), position()+1);
return 1;
- } else if (k == 'i' || k == 'j' || k == 'l' || k == 'm') {
- // Fl_Input wants to "insert a few selected control characters
- // literally", but this gets in the way of key commands.
+ } else if (k == 'h' || k == 'i' || k == 'j' || k == 'l' || k == 'm') {
+ // Fl_Input wants to use ^H as backspace, and also "insert a few
+ // selected control characters literally", but this gets in the way
+ // of key commands.
return 0;
}
}