Skip to content

Commit

Permalink
Merge origin/tmm-dev into tmm-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
RedToxyl committed Jul 12, 2024
2 parents 0237ab2 + f74d0b8 commit b9ccae8
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions source/GM-TE/GMTEEditor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ GMTEEditor >> exportMenu [

{
#category : #'input handling',
#'squeak_changestamp' : 'mcjj 7/12/2024 00:19'
#'squeak_changestamp' : 'mcjj 7/12/2024 17:12'
}
GMTEEditor >> filterEvent: aKeyboardEvent for: anObject [
| key |
Expand All @@ -1083,9 +1083,26 @@ GMTEEditor >> filterEvent: aKeyboardEvent for: anObject [

aKeyboardEvent commandKeyPressed ifTrue: [
key caseOf: {
[$s] -> [self exportAsMorph].
[$i] -> [self importFromMorph].
[$o] -> [self importFromTileset].
[$g] -> [self toggleGrid].
[$h] -> [self toggleBackgroundTiles].
[$r] -> [self rotateSelectedTile].

[$a] -> [self addLayer].
[$n] -> [self renameLayer].
[$c] -> [self resetSelectedLayers].
[$b] -> [self blendSelectedLayers].
[$x] -> [self deleteSelectedLayers].
[$v] -> [self toggleSelectedLayerVisibility].

[$z] -> [self undo].
[$y] -> [self redo].
[$r] -> [self rotateSelectedTile].
[$1] -> [self selectRadiusBrush].
[$2] -> [self selectLineBrush].
[$3] -> [self selectFillBrush].
[$4] -> [self selectRectangleBrush].
} otherwise: [^ aKeyboardEvent "no hit"].
^ aKeyboardEvent ignore "hit"].

Expand Down

0 comments on commit b9ccae8

Please sign in to comment.