Commit fa30469c authored by jalf's avatar jalf Committed by Solly Ross

Keyboard Handling [5/8]: Update rfb.js to connect mouse events to keyboard handler

This allows the keyboard handler to check modifier key state much more frequently

Since some browsers never send keyup events for modifier keys, we have to
synchronize modifier state whenever we get a mouse or keyboard event
parent 9ceef041
......@@ -222,7 +222,8 @@ function constructor() {
'onKeyPress': keyPress});
mouse = new Mouse({'target': conf.target,
'onMouseButton': mouseButton,
'onMouseMove': mouseMove});
'onMouseMove': mouseMove,
'notify': keyboard.sync});
rmode = display.get_render_mode();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment