X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-vnc-client.git/blobdiff_plain/be37bc6d2ddaf9a93edfa6bbad89c6af7688db1f..a824f7ccc88825c5ba5a3f990cfaf3530b9d88a6:/VncCanvas.java diff --git a/VncCanvas.java b/VncCanvas.java index df84409..4cb7d63 100644 --- a/VncCanvas.java +++ b/VncCanvas.java @@ -79,6 +79,7 @@ class VncCanvas extends Canvas // True if we process keyboard and mouse events. boolean inputEnabled; + int extraModifiers = 0; // // The constructors. @@ -1510,6 +1511,9 @@ class VncCanvas extends Canvas // Input enabled. synchronized(rfb) { try { + if (extraModifiers != 0) { + evt.setModifiers(evt.getModifiers() | extraModifiers); + } rfb.writeKeyEvent(evt); } catch (Exception e) { e.printStackTrace();