From 14ff8a511b48c8c004980eb1165992b27bdf9462 Mon Sep 17 00:00:00 2001 From: Jannis Jost Date: Fri, 12 Jul 2024 17:20:30 +0200 Subject: [PATCH] lots of keybindings --- source/GM-TE/GMTEEditor.class.st | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/source/GM-TE/GMTEEditor.class.st b/source/GM-TE/GMTEEditor.class.st index fedd96b3..6637e8e6 100644 --- a/source/GM-TE/GMTEEditor.class.st +++ b/source/GM-TE/GMTEEditor.class.st @@ -1061,7 +1061,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 | @@ -1073,9 +1073,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"].