Skip to content

Commit

Permalink
Merge pull request #8856 from guillep/fix/8855
Browse files Browse the repository at this point in the history
Fix 8855: Paste shortcut (cmd/ctrl+V) conflicts with new calypso shortcut
  • Loading branch information
MarcusDenker committed Mar 23, 2021
2 parents d184cb5 + ad84d20 commit 03f9c59
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
Expand Up @@ -6,10 +6,3 @@ SycMergeVariableCommand class >> fullBrowserMenuActivation [

^CmdContextMenuActivation byRootGroupItemOrder: 1.1 for: ClyFullBrowserVariableContext
]

{ #category : #'*Calypso-SystemTools-Core' }
SycMergeVariableCommand class >> sourceCodeMenuActivation [
<classAnnotation>

^SycSourceCodeMenuActivation byRootGroupItemOrder: 1.1 for: ClySourceCodeContext
]
Expand Up @@ -6,10 +6,3 @@ SycMergeVariableCommand class >> fullBrowserShortcutActivation [

^CmdShortcutActivation by: $v meta, $m meta for: ClyFullBrowserVariableContext
]

{ #category : #'*Calypso-SystemTools-FullBrowser' }
SycMergeVariableCommand class >> sourceCodeShortcutActivation [
<classAnnotation>

^CmdShortcutActivation by: $v meta, $m meta for: ClySourceCodeContext
]
4 changes: 3 additions & 1 deletion src/Keymapping-KeyCombinations/KMKeyCombination.class.st
Expand Up @@ -95,7 +95,9 @@ KMKeyCombination >> mac [

{ #category : #matching }
KMKeyCombination >> matches: anEventBuffer [
^ self matchesCompletely: anEventBuffer first

^ anEventBuffer size = 1 and:
[self matchesCompletely: anEventBuffer first]
]

{ #category : #matching }
Expand Down
4 changes: 3 additions & 1 deletion src/Keymapping-Tests/KMShortcutTest.class.st
Expand Up @@ -127,7 +127,9 @@ KMShortcutTest >> testSimpleChainMatches [
eCtrl := self eventKey: $e ctrl: true.

self assert: (($e ctrl, $e) matches: {eCtrl}).
self assert: ($e ctrl matches: {eCtrl. e}).

"A full shortcut should not match a bigger buffer ever"
self deny: ($e ctrl matches: {eCtrl. e}).

self deny: (($e ctrl, $e) matches: {eCtrl. self eventKey: $a}).
self deny: ($e ctrl matches: {e})
Expand Down

0 comments on commit 03f9c59

Please sign in to comment.