mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
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:
2
midend.c
2
midend.c
@ -1223,7 +1223,7 @@ int midend_process_key(midend *me, int x, int y, int button)
|
|||||||
if (!IS_CURSOR_MOVE(button & ~MOD_MASK)) {
|
if (!IS_CURSOR_MOVE(button & ~MOD_MASK)) {
|
||||||
/* reject CTRL+anything odd */
|
/* reject CTRL+anything odd */
|
||||||
if ((button & MOD_CTRL) && (button & ~MOD_MASK) >= 0x20)
|
if ((button & MOD_CTRL) && (button & ~MOD_MASK) >= 0x20)
|
||||||
printf(" -> %d\n", PKR_UNUSED);
|
return PKR_UNUSED;
|
||||||
/* otherwise strip them */
|
/* otherwise strip them */
|
||||||
button &= ~(MOD_CTRL | MOD_SHFT);
|
button &= ~(MOD_CTRL | MOD_SHFT);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user