1
Vývoj / Re:Interaktivita ve Smalltalku
« kdy: 01. 07. 2020, 16:02:30 »
Pokud to jde vyhnul, bych se Morphicu nebo globálnímu odchytávání událostí z klávesnice a použil Spec 2. Např.:
Kód: [Vybrat]
| presenter |
presenter := SpButtonPresenter new.
presenter bindKeyCombination: $a asKeyCombination toAction: [ self inform: 'pressed' ].
presenter bindKeyCombination: $a shift asKeyCombination toAction: [ self inform: 'pressed with shift' ].
presenter openWithSpec.