mirror of
https://github.com/lowobservable/oec.git
synced 2026-01-30 21:41:48 +00:00
Add support for keyboards with a single modifier release scan code and add initial 3483 keymap
This commit is contained in:
@@ -143,6 +143,10 @@ class Controller:
|
||||
|
||||
(key, modifiers, modifiers_changed) = self.terminal.keyboard.get_key(scan_code)
|
||||
|
||||
if self.logger.isEnabledFor(logging.DEBUG):
|
||||
self.logger.debug((f'Keystroke detected: Scan Code = {scan_code}, '
|
||||
f'Key = {key}, Modifiers = {modifiers}'))
|
||||
|
||||
# Update the status line if modifiers have changed.
|
||||
if modifiers_changed:
|
||||
indicators = bytearray(1)
|
||||
@@ -154,10 +158,6 @@ class Controller:
|
||||
|
||||
self.terminal.status_line.write(35, indicators)
|
||||
|
||||
if self.logger.isEnabledFor(logging.DEBUG):
|
||||
self.logger.debug((f'Keystroke detected: Scan Code = {scan_code}, '
|
||||
f'Key = {key}, Modifiers = {modifiers}'))
|
||||
|
||||
if not key:
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user