From 2e157118e099c69ab8db83174ea33462f2bc8192 Mon Sep 17 00:00:00 2001 From: Brian Hinz Date: Wed, 6 Mar 2013 21:37:31 +0000 Subject: 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 --- java/com/tigervnc/vncviewer/CConn.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'java/com') 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 && -- cgit v1.2.3