Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
asiekierka committed Mar 19, 2023
1 parent e20257a commit 2460fef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sdl/frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,8 +617,8 @@ int main(int argc, char **argv) {
scode = event.key.keysym.scancode;
kcode = event.key.keysym.sym;
if (zzt_kmod_get() & ZZT_KMOD_CTRL) {
if (!(kcode >= 97 && kcode <= 122)) break;
kcode -= 96;
if (!((kcode >= 97 && kcode <= 122) || (kcode >= 65 && kcode <= 90))) break;
kcode &= 0x1F;
scode = 0;
}

Expand Down Expand Up @@ -648,8 +648,8 @@ int main(int argc, char **argv) {
scode = event.key.keysym.scancode;
kcode = event.key.keysym.sym;
if (zzt_kmod_get() & ZZT_KMOD_CTRL) {
if (!(kcode >= 97 && kcode <= 122)) break;
kcode -= 96;
if (!((kcode >= 97 && kcode <= 122) || (kcode >= 65 && kcode <= 90))) break;
kcode &= 0x1F;
scode = 0;
}

Expand Down

0 comments on commit 2460fef

Please sign in to comment.