diff options
author | amartin <olpc@xo-05-28-21.localdomain> | 2007-09-11 07:07:37 (GMT) |
---|---|---|
committer | amartin <olpc@xo-05-28-21.localdomain> | 2007-09-11 07:07:37 (GMT) |
commit | 4acb6bfbda5e60b7770feaf6dfb4a0d0197f8cc8 (patch) | |
tree | 22abca768ce201d2a2da5f57f9c0b7845b424348 /Jam/Desktop.py | |
parent | b5d19eaeb6ea59cb6564d64d4519e788d0985d74 (diff) |
jam shortcuts
Diffstat (limited to 'Jam/Desktop.py')
-rw-r--r-- | Jam/Desktop.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Jam/Desktop.py b/Jam/Desktop.py index e8a8afd..7b1acba 100644 --- a/Jam/Desktop.py +++ b/Jam/Desktop.py @@ -144,6 +144,9 @@ class Desktop( gtk.EventBox ): for i in range( len(self.blocks)-1, -1, -1 ): self.deleteBlock( self.blocks[i] ) + def mapKey( self, key, block, oldKey = None ): + self.owner.mapKey( key, block, oldKey ) + def getInstrumentImage( self, id, active = False ): return self.owner.getInstrumentImage( id, active ) @@ -321,6 +324,8 @@ class Desktop( gtk.EventBox ): return for i in range(blockCount-1, -1, -1): over = self.blocks[i].testMouseOver( event ) + if over == -1: + break # over block but no hotspot if over: if self.overKey != self.blocks[i]: if self.overKey: |