#UI_ENHANCEMENT by cg
authorClaus Gittinger <cg@exept.de>
Wed, 12 Oct 2016 18:47:16 +0200
changeset 16936 2d11a0d97ad5
parent 16935 ee594aebfa60
child 16937 f020ad4fe094
#UI_ENHANCEMENT by cg class: DirectoryContentsBrowser changed: #processEvent: Accept key is no longer a fileIn. (confusing and error prone, as Accept with focus on editor is a file-save operation)
DirectoryContentsBrowser.st
--- a/DirectoryContentsBrowser.st	Wed Oct 12 18:47:04 2016 +0200
+++ b/DirectoryContentsBrowser.st	Wed Oct 12 18:47:16 2016 +0200
@@ -1846,12 +1846,15 @@
     rawKey := anEvent rawKey.
 
    "/ (key ~= #'Alt_L') ifTrue:[self halt.].
-    key == #Accept ifTrue:[
-        self withActivityIndicationDo:[
-            self fileFileIn.
-        ].
-        ^ true.
-    ].
+   "/ cg: removed; too dangerous, because it depends on which view has
+   "/ the focus - in the codeView, it is a save; in the list, it is a fileIn.
+   "/ this is confusing to newcomers.
+"/    key == #Accept ifTrue:[
+"/        self withActivityIndicationDo:[
+"/            self fileFileIn.
+"/        ].
+"/        ^ true.
+"/    ].
     key == #Paste ifTrue:[
         self pasteFiles.
         ^ true.