Add support for keyboards with a single modifier release scan code and add initial 3483 keymap

This commit is contained in:
Andrew Kay
2019-06-18 21:32:24 -05:00
parent 1a8a107d8c
commit b8346cd8fe
5 changed files with 365 additions and 19 deletions

View File

@@ -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