Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean cyclic dependencies between Keymapping packages. They are, of c…
…ourse, still logically dependent on each other but now they do not require atomic loading
- Loading branch information
1 parent
deda42a
commit 5abc99d
Showing
6 changed files
with
33 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Extension { #name : #KMKeymap } | ||
|
||
{ #category : #'*Keymapping-KeyCombinations' } | ||
KMKeymap >> disable [ | ||
|
||
self shortcut: KMNoShortcut new. | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Extension { #name : #KMNoKeymap } | ||
|
||
{ #category : #'*Keymapping-KeyCombinations' } | ||
KMNoKeymap >> shortcut [ | ||
^ KMNoShortcut new | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Extension { #name : #KMRepository } | ||
|
||
{ #category : #'*Keymapping-Pragmas' } | ||
KMRepository class >> cleanUp [ | ||
self reset | ||
] | ||
|
||
{ #category : #'*Keymapping-Pragmas' } | ||
KMRepository class >> reset [ | ||
"Do not reset KMDispatchers instances, it may make the image unusable or force the user to close all the windows." | ||
|
||
"TODO: a better reset, allowing the KMDispatcher instances to reload all named, updated, keymaps from the resetted KMRepository." | ||
|
||
self currentWorld setProperty: #kmDispatcher toValue: nil. | ||
self default: self new. | ||
KMCategory allSubclasses | ||
select: [ :c | c isGlobalCategory ] | ||
thenDo: [ :c | c new installAsGlobalCategory ]. | ||
KMPragmaKeymapBuilder uniqueInstance reset. | ||
] |