#UI_ENHANCEMENT by cg
authorClaus Gittinger <cg@exept.de>
Wed, 12 Oct 2016 18:47:04 +0200
changeset 16935 ee594aebfa60
parent 16934 096cb5129063
child 16936 2d11a0d97ad5
#UI_ENHANCEMENT by cg class: FileBrowser changed: #keyPress:x:y:view: Accept key is no longer a fileIn. (confusing and error prone, as Accept with focus on editor is a file-save operation)
FileBrowser.st
--- a/FileBrowser.st	Wed Oct 12 15:40:35 2016 +0200
+++ b/FileBrowser.st	Wed Oct 12 18:47:04 2016 +0200
@@ -2026,10 +2026,13 @@
         self fileRemove.
         ^ self
     ].
-    (key == #Accept) ifTrue:[
-        self fileFileIn.
-        ^ self
-    ].
+    "/ 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 fileFileIn.
+    "/        ^ self
+    "/    ].
     (key == #GotoLine) ifTrue:[
         self fileGet.
         ^ self