mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-27 22:32:02 +08:00
Fixed potential failure to use synergy's keyboard layout when
using low-level keyboard hooks, fixed handling of the global keyboard layout dead key buffer, fixed identification of dead keys, fixed synthesis of AltGr (now using right-alt instead of left-alt), now using VK_DECIMAL for Separator key, fixed bug where an unmappable key was treated as virtual key 0xff, and added support for shift-space (shift was being discarded). Also fixed failure to hide cursor when leaving primary screen and added support for handling PrintScreen key.
This commit is contained in:
@@ -239,12 +239,9 @@ CScreen::keyDown(KeyID id, KeyModifierMask mask, KeyButton button)
|
||||
// modifier state.
|
||||
Keystrokes keys;
|
||||
KeyButton key = m_screen->mapKey(keys, *this, id, mask, false);
|
||||
if (key == 0) {
|
||||
LOG((CLOG_DEBUG2 "cannot map key 0x%08x", id));
|
||||
return;
|
||||
}
|
||||
if (keys.empty()) {
|
||||
// do nothing if there are no associated keys
|
||||
LOG((CLOG_DEBUG2 "cannot map key 0x%08x", id));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user