On Unix, when you first hit Enter or click OK in the
tk_chooseDirectory dialog, either of the following
happens:
- If the name that is entered in the "Selection" entry
is a valid directory, the dialog browses to that
directory.
- If the name is not a valid directory, nothing
happens.
Only when you hit Enter or click OK a second time does
the dialog return.
This is inconsistent with the behavior of
tk_chooseDirectory on Windows, where hitting Enter or
clicking OK once ALWAYS completes the dialog.
Also, especially the second case above is confusing,
where you click OK and nothing happens.
The attached patch makes the behavior of
tk_chooseDirectory on Linux consistent with the
behavior on Windows.
Always complete the dialog when OK is clicked
Logged In: YES
user_id=72656
Originator: NO
Joe claims that while not instantly intuitive, it is useful behavior, so I'm leaving it.
Logged In: YES
user_id=68433
Originator: NO
I believe this would hurt usability: the user might press <Enter> to mean "I want to select this directory", or "I want to look inside this directory". The current behavior makes it easier to walk down a directory tree by pointing-and-clicking or by typing; with the proposed change, you wouldn't be able to navigate by typing, since there'd be no way to say "I want to look inside this directory".