Tk Source Code

View Ticket
Login
Ticket UUID: 1550523
Title: Make tk_chooseDirectory on Unix consistent with Windows
Type: Patch Version: None
Submitter: nobody Created on: 2006-09-01 13:26:19
Subsystem: 36. [tk_chooseDirectory] Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Open Last Modified: 2007-10-31 06:46:43
Resolution: None Closed By: hobbs
    Closed on: 2007-10-30 23:36:12
Description:
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.
User Comments: jenglish added on 2007-10-31 06:46:43:
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".

hobbs added on 2007-10-31 06:36:12:
Logged In: YES 
user_id=72656
Originator: NO

Joe claims that while not instantly intuitive, it is useful behavior, so I'm leaving it.

nobody added on 2006-09-01 20:26:20:

File Added - 191596: choosedir-2.patch

Attachments: