|
@@ -55,7 +55,13 @@ class Keyboard(Element):
|
|
code=msg.key_data.code,
|
|
code=msg.key_data.code,
|
|
location=msg.key_data.location,
|
|
location=msg.key_data.location,
|
|
)
|
|
)
|
|
- arguments = KeyEventArguments(sender=self, action=action, modifiers=modifiers, key=key)
|
|
|
|
|
|
+ arguments = KeyEventArguments(
|
|
|
|
+ sender=self,
|
|
|
|
+ socket=msg.websocket,
|
|
|
|
+ action=action,
|
|
|
|
+ modifiers=modifiers,
|
|
|
|
+ key=key
|
|
|
|
+ )
|
|
return handle_event(self.key_handler, arguments, update=self.parent_view)
|
|
return handle_event(self.key_handler, arguments, update=self.parent_view)
|
|
except Exception:
|
|
except Exception:
|
|
traceback.print_exc()
|
|
traceback.print_exc()
|