mirror of
https://github.com/lowobservable/oec.git
synced 2026-01-25 19:56:36 +00:00
Implement keyboard clicker toggle
This commit is contained in:
@@ -9,6 +9,7 @@ from coax import poll, poll_ack, PollAction, KeystrokePollResponse, ReceiveTimeo
|
||||
ReceiveError, ProtocolError
|
||||
|
||||
from .terminal import Terminal, read_terminal_ids
|
||||
from .keyboard import Key
|
||||
from .session import SessionDisconnectedError
|
||||
|
||||
class Controller:
|
||||
@@ -155,7 +156,9 @@ class Controller:
|
||||
if not key:
|
||||
return
|
||||
|
||||
if self.session:
|
||||
if key == Key.CLICKER:
|
||||
self.terminal.keyboard.clicker = not self.terminal.keyboard.clicker
|
||||
elif self.session:
|
||||
self.session.handle_key(key, modifiers, scan_code)
|
||||
|
||||
def _poll(self):
|
||||
|
||||
Reference in New Issue
Block a user