Chris Muller uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-cmm.1169.mcz ==================== Summary ==================== Name: Morphic-cmm.1169 Author: cmm Time: 7 June 2016, 6:34:59.086637 pm UUID: b7aecab3-80da-402a-b8ed-1731c010ecd7 Ancestors: Morphic-tpr.1168 - Fix Cmd-Escape to close the *top* window, not the one under the hand. - Introduce new global hot-key Cmd-` (tilde) to bring the window under the hand to the front. Note that window under the hand can now be closed quickly via Cmd-[Tilde] + Cmd-[Escape]. =============== Diff against Morphic-tpr.1168 =============== Item was added: + ----- Method: SystemWindow class>>bringWindowUnderHandToFront (in category 'top window') ----- + bringWindowUnderHandToFront + "This only works when All Windows Active is enabled." + (self windowsIn: World) do: [ : each | each isLookingFocused ifTrue: [ ^ each beKeyWindow ]]! Item was added: + ----- Method: SystemWindow class>>deleteTopWindow (in category 'top window') ----- + deleteTopWindow + TopWindow ifNotNil: [ TopWindow delete ]! Item was changed: ----- Method: SystemWindow>>filterEvent:for: (in category 'events') ----- filterEvent: aKeyboardEvent for: anObject "Provide keyboard shortcuts." aKeyboardEvent isKeystroke ifFalse: [^ aKeyboardEvent]. aKeyboardEvent commandKeyPressed ifTrue: [ aKeyboardEvent keyCharacter caseOf: { [$\] -> [self class sendTopWindowToBack]. + [Character escape] -> [self class deleteTopWindow]. + [$`] -> [self class bringWindowUnderHandToFront]. - [Character escape] -> [self delete]. } otherwise: [^ aKeyboardEvent "no hit"]. ^ aKeyboardEvent ignore "hit!!"]. aKeyboardEvent controlKeyPressed ifTrue: [ aKeyboardEvent keyCharacter caseOf: { [Character escape] -> [self world findWindow: aKeyboardEvent]. } otherwise: [^ aKeyboardEvent "no hit"]. ^ aKeyboardEvent ignore "hit!!"]. ^ aKeyboardEvent "no hit"! |
Alt-` cannot be used on Ubuntu OOTB, to fix this:
in compizconfig-settings-manager, go to Desktop -> Ubuntu Unity Plugin -> Switcher, then change "Key to flip through windows in the switcher" from disabled to something else. From: http://askubuntu.com/questions/132304/how-to-disable-alt On Tue, Jun 7, 2016 at 6:35 PM, <[hidden email]> wrote: > Chris Muller uploaded a new version of Morphic to project The Trunk: > http://source.squeak.org/trunk/Morphic-cmm.1169.mcz > > ==================== Summary ==================== > > Name: Morphic-cmm.1169 > Author: cmm > Time: 7 June 2016, 6:34:59.086637 pm > UUID: b7aecab3-80da-402a-b8ed-1731c010ecd7 > Ancestors: Morphic-tpr.1168 > > - Fix Cmd-Escape to close the *top* window, not the one under the hand. > - Introduce new global hot-key Cmd-` (tilde) to bring the window under the hand to the front. > Note that window under the hand can now be closed quickly via Cmd-[Tilde] + Cmd-[Escape]. > > =============== Diff against Morphic-tpr.1168 =============== > > Item was added: > + ----- Method: SystemWindow class>>bringWindowUnderHandToFront (in category 'top window') ----- > + bringWindowUnderHandToFront > + "This only works when All Windows Active is enabled." > + (self windowsIn: World) do: [ : each | each isLookingFocused ifTrue: [ ^ each beKeyWindow ]]! > > Item was added: > + ----- Method: SystemWindow class>>deleteTopWindow (in category 'top window') ----- > + deleteTopWindow > + TopWindow ifNotNil: [ TopWindow delete ]! > > Item was changed: > ----- Method: SystemWindow>>filterEvent:for: (in category 'events') ----- > filterEvent: aKeyboardEvent for: anObject > "Provide keyboard shortcuts." > > aKeyboardEvent isKeystroke > ifFalse: [^ aKeyboardEvent]. > > aKeyboardEvent commandKeyPressed ifTrue: [ > aKeyboardEvent keyCharacter caseOf: { > [$\] -> [self class sendTopWindowToBack]. > + [Character escape] -> [self class deleteTopWindow]. > + [$`] -> [self class bringWindowUnderHandToFront]. > - [Character escape] -> [self delete]. > } otherwise: [^ aKeyboardEvent "no hit"]. > ^ aKeyboardEvent ignore "hit!!"]. > > aKeyboardEvent controlKeyPressed ifTrue: [ > aKeyboardEvent keyCharacter caseOf: { > [Character escape] -> [self world findWindow: aKeyboardEvent]. > } otherwise: [^ aKeyboardEvent "no hit"]. > ^ aKeyboardEvent ignore "hit!!"]. > > ^ aKeyboardEvent "no hit"! > > |
In reply to this post by commits-2
On 07.06.2016, at 23:35, [hidden email] wrote: > Chris Muller uploaded a new version of Morphic to project The Trunk: > http://source.squeak.org/trunk/Morphic-cmm.1169.mcz > > ==================== Summary ==================== > > Name: Morphic-cmm.1169 > Author: cmm > Time: 7 June 2016, 6:34:59.086637 pm > UUID: b7aecab3-80da-402a-b8ed-1731c010ecd7 > Ancestors: Morphic-tpr.1168 > > - Fix Cmd-Escape to close the *top* window, not the one under the hand. > - Introduce new global hot-key Cmd-` (tilde) to bring the window under the hand to the front. > Note that window under the hand can now be closed quickly via Cmd-[Tilde] + Cmd-[Escape]. Note: Cmd-` is the Mac hotkey to _cycle_ through windows... > > =============== Diff against Morphic-tpr.1168 =============== > > Item was added: |
(woops, I mistakenly said "Tilde" -- in fact I meant the grave accent
(a.k.a., "back tick"). > Note: Cmd-` is the Mac hotkey to _cycle_ through windows... Hi Tobias, in which context? Mac? Windows? Squeak? I did not notice this in Squeak before.. |
Woops, I see you said Mac. Yeah, same as in Ubuntu. We have to share
keys with OS's to make a total computing experience we can live with. On Tue, Jun 7, 2016 at 7:09 PM, Chris Muller <[hidden email]> wrote: > (woops, I mistakenly said "Tilde" -- in fact I meant the grave accent > (a.k.a., "back tick"). > >> Note: Cmd-` is the Mac hotkey to _cycle_ through windows... > > Hi Tobias, in which context? Mac? Windows? Squeak? I did not > notice this in Squeak before.. |
Free forum by Nabble | Edit this page |