Skip to content

Commit 25efb44

Browse files
committed
fix(input/windows): should support more versions
1 parent 88be187 commit 25efb44

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

input.hpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ struct Input {
141141
char ignore_byte = 0;
142142
auto input = Input(SpecKey::None);
143143
#ifdef _WIN32
144-
if (byte == 0 || byte == 224) {
144+
if (byte == 0 || byte == 224 || byte == -32) {
145145
char next_byte = get_char();
146146
switch (next_byte) {
147147
case 59:
@@ -152,12 +152,6 @@ struct Input {
152152
return Input(SpecKey::F3);
153153
case 62:
154154
return Input(SpecKey::F4);
155-
default:
156-
break;
157-
}
158-
} else if (byte == -32) {
159-
char next_byte = get_char();
160-
switch (next_byte) {
161155
case 72:
162156
return Input(Arrow::Up);
163157
case 75:

0 commit comments

Comments
 (0)