--- a/SmallSense__EditService.st Sun May 28 21:14:31 2017 +0100
+++ b/SmallSense__EditService.st Sun May 28 21:14:55 2017 +0100
@@ -53,20 +53,15 @@
!EditService class methodsFor:'initialization'!
initialize
- "
- | map |
- map := Screen current keyboardMap.
- map bindValue:#CodeCompletion to: #'Ctrl '.
- map bindValue:#CodeCompletion to: #'Ctrlspace'.
- "
-
Smalltalk addStartBlock:[
Screen current notNil ifTrue:[
| map |
+
map := Screen current keyboardMap.
- (map keyAtValue:#CodeCompletion) isNil ifTrue:[
- map bindValue:#CodeCompletion to: #'Ctrl '.
- map bindValue:#CodeCompletion to: #'Ctrlspace'.
+ (map bindingForLogical:#CodeCompletion) isNil ifTrue:[
+ (map hasMappingFor: #'Ctrl ') ifFalse:[
+ map bindValue:#CodeCompletion to: #'Ctrl '.
+ ].
].
]
]
--- a/extensions.st Sun May 28 21:14:31 2017 +0100
+++ b/extensions.st Sun May 28 21:14:55 2017 +0100
@@ -64,7 +64,7 @@
shortcut key defined, process the shortcut and return true - otherwise false."
UserPreferences current smallSenseEnabled ifTrue:[
- (aKeyPressEvent key == #OpenNavigator or:[aKeyPressEvent rawKey == #CtrlT and:[(aKeyPressEvent targetView keyboardMap hasBindingFor: #OpenNavigator) not]]) ifTrue:[
+ (aKeyPressEvent key == #OpenNavigator or:[aKeyPressEvent rawKey == #CtrlT and:[(aKeyPressEvent targetView keyboardMap hasMappingFor:#OpenNavigator) not]]) ifTrue:[
SmallSense::Navigator open.
^ true
].
@@ -610,7 +610,7 @@
shortcut key defined, process the shortcut and return true - otherwise false."
UserPreferences current smallSenseEnabled ifTrue:[
- (aKeyPressEvent key == #OpenNavigator or:[aKeyPressEvent rawKey == #CtrlT and:[(aKeyPressEvent targetView keyboardMap hasBindingFor: #OpenNavigator) not]]) ifTrue:[
+ (aKeyPressEvent key == #OpenNavigator or:[aKeyPressEvent rawKey == #CtrlT and:[(aKeyPressEvent targetView keyboardMap hasMappingFor:#OpenNavigator) not]]) ifTrue:[
SmallSense::Navigator open.
^ true
].
@@ -686,7 +686,7 @@
processShortcut: aKeyPressEvent
UserPreferences current smallSenseEnabled ifTrue:[
aKeyPressEvent isKeyPressEvent ifTrue:[
- (aKeyPressEvent key == #OpenNavigator or:[aKeyPressEvent rawKey == #CtrlT and:[(aKeyPressEvent targetView keyboardMap hasBindingFor: #OpenNavigator) not]]) ifTrue:[
+ (aKeyPressEvent key == #OpenNavigator or:[aKeyPressEvent rawKey == #CtrlT and:[(aKeyPressEvent targetView keyboardMap hasMappingFor:#OpenNavigator) not]]) ifTrue:[
self searchMenuOpenNavigatorOnDeclarations.
^ true
].
@@ -1339,7 +1339,7 @@
shortcut key defined, process the shortcut and return true - otherwise false."
UserPreferences current smallSenseNewDialogsEnabled ifTrue:[
- (aKeyPressEvent key == #OpenNavigator or:[aKeyPressEvent rawKey == #CtrlT and:[(aKeyPressEvent targetView keyboardMap hasBindingFor: #OpenNavigator) not]]) ifTrue:[
+ (aKeyPressEvent key == #OpenNavigator or:[aKeyPressEvent rawKey == #CtrlT and:[(aKeyPressEvent targetView keyboardMap hasMappingFor:#OpenNavigator) not]]) ifTrue:[
SmallSense::Navigator open.
^ true
].