~ fixed shift release
This commit is contained in:
parent
06bd6013a5
commit
94e7b913e1
|
@ -106,7 +106,7 @@ int main() {
|
||||||
|
|
||||||
vkvm::registerEvent(vkvm::KeyUp, [&terminal]() {
|
vkvm::registerEvent(vkvm::KeyUp, [&terminal]() {
|
||||||
vkvm::KeyCode keycode = vkvm::getLastPressedKey();
|
vkvm::KeyCode keycode = vkvm::getLastPressedKey();
|
||||||
if(((vkvm::KeyCode::ShiftLeft & 0xfff) == keycode) ||((vkvm::KeyCode::ShiftRight & 0xfff) == keycode)){
|
if(((vkvm::KeyCode::ShiftLeft) == keycode) ||((vkvm::KeyCode::ShiftRight) == keycode)){
|
||||||
terminal.shiftup();
|
terminal.shiftup();
|
||||||
}
|
}
|
||||||
// char ch = keycode - (vkvm::KeyCode::A & 0xfff) + 'A';
|
// char ch = keycode - (vkvm::KeyCode::A & 0xfff) + 'A';
|
||||||
|
|
Loading…
Reference in New Issue