diff --git a/rdpy/ui/qt4.py b/rdpy/ui/qt4.py index a0f0e5d..ccb4659 100644 --- a/rdpy/ui/qt4.py +++ b/rdpy/ui/qt4.py @@ -224,7 +224,7 @@ class RDPClientQt(RDPClientObserver, QAdaptor): code = e.nativeScanCode() if sys.platform == "linux2": code -= 8 - self._controller.sendKeyEventScancode(e.nativeScanCode() - 8, isPressed) + self._controller.sendKeyEventScancode(code, isPressed) def closeEvent(self, e): """