Fix control-character generation fix

The change I made in c224416c76e41f284b318adc51f08c3ed11de8e2 was
incorrect: I accidentally removed a "return" statement and left in a
debugging printf() when I meant to keep the return and drop the
printf().
This commit is contained in:
Ben Harris
2023-06-26 09:10:28 +01:00
parent a56781bb69
commit 8b8a277a7a

View File

@ -1223,7 +1223,7 @@ int midend_process_key(midend *me, int x, int y, int button)
if (!IS_CURSOR_MOVE(button & ~MOD_MASK)) {
/* reject CTRL+anything odd */
if ((button & MOD_CTRL) && (button & ~MOD_MASK) >= 0x20)
printf(" -> %d\n", PKR_UNUSED);
return PKR_UNUSED;
/* otherwise strip them */
button &= ~(MOD_CTRL | MOD_SHFT);
}