summaryrefslogtreecommitdiffstats
path: root/java/com
diff options
context:
space:
mode:
authorBrian Hinz <bphinz@users.sourceforge.net>2013-03-06 21:37:31 +0000
committerBrian Hinz <bphinz@users.sourceforge.net>2013-03-06 21:37:31 +0000
commit2e157118e099c69ab8db83174ea33462f2bc8192 (patch)
treef76942867f38ac922f9002a9171586e85c3f8d79 /java/com
parent8fb4efa3ff48f590a3dcabd547db3fcbad45b658 (diff)
downloadtigervnc-2e157118e099c69ab8db83174ea33462f2bc8192.tar.gz
tigervnc-2e157118e099c69ab8db83174ea33462f2bc8192.zip
Correct typo in r5058 that set an initial value on key location. Add a some verbosity to KeyEvent debug statement.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5059 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java/com')
-rw-r--r--java/com/tigervnc/vncviewer/CConn.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/java/com/tigervnc/vncviewer/CConn.java b/java/com/tigervnc/vncviewer/CConn.java
index fe79ce19..36384637 100644
--- a/java/com/tigervnc/vncviewer/CConn.java
+++ b/java/com/tigervnc/vncviewer/CConn.java
@@ -1155,7 +1155,7 @@ public class CConn extends CConnection
}
public void writeKeyEvent(KeyEvent ev) {
- int keysym = 0, keycode, key, location = 0;
+ int keysym = 0, keycode, key, location;
if (shuttingDown)
return;
@@ -1166,9 +1166,8 @@ public class CConn extends CConnection
key = ev.getKeyChar();
location = ev.getKeyLocation();
- vlog.debug((ev.isActionKey() ? "action " : "") + "key " +
- (down ? "press" : "release") + " code " + keycode +
- " location " + location + " ASCII " + key);
+ String fmt = ev.paramString().replaceAll(",","%n ");
+ vlog.debug(String.format(fmt));
if (!ev.isActionKey()) {
if (keycode >= KeyEvent.VK_0 && keycode <= KeyEvent.VK_9 &&