proper check for modifiers being released, not caring about added.
This commit is contained in:
parent
7112755cfc
commit
71f9b6cf3a
2 changed files with 2 additions and 3 deletions
|
@ -81,8 +81,7 @@ def _motion_grab(data):
|
|||
global _motion_mask, _inmove, _inresize;
|
||||
|
||||
# are all the modifiers this started with still pressed?
|
||||
print _motion_mask, data.state
|
||||
if not _motion_mask == data.state:
|
||||
if not _motion_mask & data.state:
|
||||
if _inmove:
|
||||
_end_move(data)
|
||||
elif _inresize:
|
||||
|
|
|
@ -218,7 +218,7 @@ class _cycledata:
|
|||
done = 0
|
||||
notreverting = 1
|
||||
# have all the modifiers this started with been released?
|
||||
if not self.state == data.state:
|
||||
if not self.state & data.state:
|
||||
done = 1
|
||||
elif data.action == ob.KeyAction.Press:
|
||||
# has Escape been pressed?
|
||||
|
|
Loading…
Reference in a new issue