]> Dogcows Code - chaz/openbox/blobdiff - scripts/stackedcycle.py
free the colors on shutdown
[chaz/openbox] / scripts / stackedcycle.py
index 6e46503dd0dce3eefaa0bb74e04ad907846cf098..76658ae1fe9384ea6623a2a290e31c831fc017b6 100644 (file)
@@ -218,15 +218,18 @@ class _cycledata:
         done = 0
         notreverting = 1
         # have all the modifiers this started with been released?
-        if (data.action == ob.KeyAction.Release and
-            not self.state & data.state):
+        if not self.state & data.state:
             done = 1
-        # has Escape been pressed?
-        elif data.action == ob.KeyAction.Press and data.key == "Escape":
-            done = 1
-            notreverting = 0
-            # revert
-            self.menupos = 0
+        elif data.action == ob.KeyAction.Press:
+            # has Escape been pressed?
+            if data.key == "Escape":
+                done = 1
+                notreverting = 0
+                # revert
+                self.menupos = 0
+            # has Enter been pressed?
+            elif data.key == "Return":
+                done = 1
 
         if done:
             # activate, and deiconify/unshade/raise
This page took 0.021078 seconds and 4 git commands to generate.