aboutsummaryrefslogtreecommitdiff
path: root/src/edbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/edbox.c')
-rw-r--r--src/edbox.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/edbox.c b/src/edbox.c
index 0903cb9..167bdc2 100644
--- a/src/edbox.c
+++ b/src/edbox.c
@@ -200,6 +200,8 @@ void edbox_keystroke(void) {
case 0x3c: /* caps */
OS.shflok ^= 0x40;
keyclick();
+ OS.ch = 0xff;
+ return;
break;
case 0x7c: /* shift-caps */
case 0xbc: /* ctrl-caps */
@@ -207,7 +209,8 @@ void edbox_keystroke(void) {
case 0x67: /* ...w/shift */
case 0x97: /* ...w/ctrl */
case 0x9a: /* ctrl-3 (crash if cgetc() reads it!) */
- return; /* ignore it! */
+ OS.ch = 0xff; /* ignore it! */
+ return;
break;
default:
break;