Revision: 4046
          http://vexi.svn.sourceforge.net/vexi/?rev=4046&view=rev
Author:   clrg
Date:     2011-03-11 04:16:52 +0000 (Fri, 11 Mar 2011)

Log Message:
-----------
Workaround for shift+ctrl+6 (i.e. C-^) returning empty character (needs review)

Modified Paths:
--------------
    trunk/org.vexi-core.main/src/main/java/org/vexi/plat/AWT.java
    trunk/org.vexi-core.main/src/main/java/org/vexi/plat/Swing.java

Modified: trunk/org.vexi-core.main/src/main/java/org/vexi/plat/AWT.java
===================================================================
--- trunk/org.vexi-core.main/src/main/java/org/vexi/plat/AWT.java       
2011-03-01 01:41:33 UTC (rev 4045)
+++ trunk/org.vexi-core.main/src/main/java/org/vexi/plat/AWT.java       
2011-03-11 04:16:52 UTC (rev 4046)
@@ -880,6 +880,11 @@
                 if (c >= 1 && c <= 26) {
                     c = (char)('a' + c - 1);
                 }
+                // WORKAROUND shift+ctrl+6 (i.e. C-^) returning empty character
+                if (k.getKeyCode() == 54 && k.isControlDown() && 
k.isShiftDown()) {
+                    c = '^';
+                }
+                //System.out.println(c+": "+k.getKeyCode());
                 return String.valueOf(c);
             }
         }

Modified: trunk/org.vexi-core.main/src/main/java/org/vexi/plat/Swing.java
===================================================================
--- trunk/org.vexi-core.main/src/main/java/org/vexi/plat/Swing.java     
2011-03-01 01:41:33 UTC (rev 4045)
+++ trunk/org.vexi-core.main/src/main/java/org/vexi/plat/Swing.java     
2011-03-11 04:16:52 UTC (rev 4046)
@@ -1027,6 +1027,11 @@
                 if (c >= 1 && c <= 26) {
                     c = (char)('a' + c - 1);
                 }
+                // WORKAROUND shift+ctrl+6 (i.e. C-^) returning empty character
+                if (k.getKeyCode() == 54 && k.isControlDown() && 
k.isShiftDown()) {
+                    c = '^';
+                }
+                //System.out.println(c+": "+k.getKeyCode());
                 return String.valueOf(c);
             }
         }


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

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to