Revision: 5059
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=5059&view=rev
Author:   bphinz
Date:     2013-03-06 21:37:31 +0000 (Wed, 06 Mar 2013)
Log Message:
-----------
Correct typo in r5058 that set an initial value on key location. Add a some 
verbosity to KeyEvent debug statement.

Revision Links:
--------------
    http://tigervnc.svn.sourceforge.net/tigervnc/?rev=5058&view=rev

Modified Paths:
--------------
    trunk/java/com/tigervnc/vncviewer/CConn.java

Modified: trunk/java/com/tigervnc/vncviewer/CConn.java
===================================================================
--- trunk/java/com/tigervnc/vncviewer/CConn.java        2013-03-06 18:14:54 UTC 
(rev 5058)
+++ trunk/java/com/tigervnc/vncviewer/CConn.java        2013-03-06 21:37:31 UTC 
(rev 5059)
@@ -1155,7 +1155,7 @@
   }
 
   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 @@
     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 &&

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Tigervnc-commits mailing list
Tigervnc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to