mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-29 12:50:28 +00:00
Add necessary Qt change.
This commit is contained in:
parent
a58f643b4d
commit
b7e1ac840f
@ -889,7 +889,7 @@ bool MainWindow::processEvent(QKeyEvent *event) {
|
|||||||
if(!keyboardMachine) return true;
|
if(!keyboardMachine) return true;
|
||||||
|
|
||||||
auto &keyboard = keyboardMachine->get_keyboard();
|
auto &keyboard = keyboardMachine->get_keyboard();
|
||||||
keyboard.set_key_pressed(*key, event->text().size() ? event->text()[0].toLatin1() : '\0', isPressed, false);
|
keyboard.set_key_pressed(*key, event->text().size() ? event->text()[0].toLatin1() : '\0', isPressed, event->isAutoRepeat());
|
||||||
if(keyboard.is_exclusive() || keyboard.observed_keys().find(*key) != keyboard.observed_keys().end()) {
|
if(keyboard.is_exclusive() || keyboard.observed_keys().find(*key) != keyboard.observed_keys().end()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user