Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        warp.c 


Log Message:
Make focus list key handling somewhat less ugly.

===================================================================
RCS file: /cvs/e/e16/e/src/warp.c,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -3 -r1.102 -r1.103
--- warp.c      29 Jan 2007 05:27:47 -0000      1.102
+++ warp.c      1 Feb 2007 02:35:16 -0000       1.103
@@ -403,6 +403,7 @@
 {
    WarpFocusWin       *fw = warpFocusWindow;
    KeySym              key;
+   unsigned int        mask;
 
    if (!EoIsShown(fw))
       return;
@@ -411,14 +412,14 @@
      {
      case KeyPress:
        if (ev->xkey.keycode == warpFocusKey)
-          key = XK_Tab;
+          key = 0x80000000;
        else
           key = XLookupKeysym(&ev->xkey, 0);
        switch (key)
          {
          default:
             break;
-         case XK_Tab:
+         case 0x80000000:
          case XK_Down:
             WarpFocus(1);
             break;
@@ -429,19 +430,24 @@
        break;
 
      case KeyRelease:
+       mask = 0;
+       EQueryPointer(NULL, NULL, NULL, NULL, &mask);
+       if ((mask & Mode.masks.mod_key_mask) == 0)
+         {
+            WarpFocusFinish();
+            break;
+         }
        if (ev->xkey.keycode == warpFocusKey)
-          key = XK_Tab;
+          key = 0x80000000;
        else
           key = XLookupKeysym(&ev->xkey, 0);
        switch (key)
          {
-         default:
-            WarpFocusFinish();
-            break;
          case XK_Escape:
             WarpFocusHide();
             break;
-         case XK_Tab:
+         default:
+         case 0x80000000:
          case XK_Down:
          case XK_Up:
             break;



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to