Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/sibson/vncdotool
Browse files Browse the repository at this point in the history
  • Loading branch information
sibson committed Apr 15, 2015
2 parents 72cc7ad + 754de3a commit 7f5989c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vncdotool/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,16 @@ class VNCDoToolClient(rfb.RFBClient):
cursor = None
cmask = None

SPECIAL_KEYS_US = "~!@#$%^&*()_+{}|:\"<>?"

def connectionMade(self):
rfb.RFBClient.connectionMade(self)
self.transport.setTcpNoDelay(True)

def _decodeKey(self, key):
if self.factory.force_caps and key.isupper():
key = 'shift-%c' % key
if self.factory.force_caps:
if key.isupper() or key in self.SPECIAL_KEYS_US:
key = 'shift-%c' % key

if len(key) == 1:
keys = [key]
Expand Down

0 comments on commit 7f5989c

Please sign in to comment.