Tk Source Code

View Ticket
Login
Ticket UUID: 600313
Title: Several problems with tkfbox.tcl
Type: Bug Version: obsolete: 8.4b1
Submitter: eserte Created on: 2002-08-26 16:34:53
Subsystem: 37. [tk_get*File] Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2026-10-26 18:37:30
Resolution: Fixed Closed By: oehhar
    Closed on: 2026-10-26 18:37:30
Description:
- I find the FocusIn binding disturbing. If I move
accidently the cursor out o f the dialog after
painfully selecting some multiple items, everything is
lost (I have a FocusFollowsMouse window manager). I
think it's better to disable the FocusIn and FocusOut
bindings.

- There should be nop bindings for Control-B1-Motion,
Shift-B1-Motion, Control-Double-ButtonRelease-1 and
Shift-Double-ButtonRelease-1. If multiple items are
selected and while pressing the control key I do a
little horizontal movement, all items are deselected.

- In the IconList_Selection proc there is obviously a
[incr ind] missing, somewhere around line 107.

- Is there any reason why Curselection has a lowercase
"s" while DrawSelection has a uppercase "s"?

- In IconList_Arrange, a final call to
IconList_DrawSelection is missing. Otherwise the
selection will not be correctly redrawn if the window
is resized.

- If multiple directories are opened, day /a and /b,
then tkfbox.tcl seems to chdir first to /a and then
tries to open b in this directory, which of course
fails.

- All references to data(curItem) may be deleted, as
it's not used anymore.
User Comments: oehhar added on 2026-10-26 18:37:30:

Merged to core-9-0-branch by [b2ea87aa].

Closing.

Thanks, Harald


jan.nijtmans added on 2026-10-23 14:59:40:

Fixed on [1994866f|trunk]

If CI build is clean, can be merged further.


serhiy.storchaka added on 2026-09-28 17:52:00:

Proposed fix in branch iconlist-keep-selection:

  • The icon list no longer clears the selection on FocusOut (added together with -multiple in [6d6e691ec6]). The Motif dialog and other file dialogs keep the selection too.
  • Control-double-click and Shift-double-click no longer invoke the dialog, as in the KDE file dialog and Windows Explorer. Two quick Control-clicks on the same item toggled it twice and then opened the rest of the selection.

Also added tests for mouse clicks in the icon list. The other problems were fixed long ago.


dkf added on 2006-02-27 18:40:13:
Logged In: YES 
user_id=79902

I'm not a focus-follows-mouse-er any more; referring bug to
someone who might have more interest in this than me.

dkf added on 2005-11-22 20:18:06:
Logged In: YES 
user_id=79902

The directory issue is just the way things work; this is
paralleling the way things operate on other platforms
(selecting multiple things from multiple directories is just
plain hard, and requires a non-standard UI.)

All other issues are now fixed in CVS HEAD *except* for the
focus issue (which seems to be a consequence of the
FocusFollowsMouse model).

dkf added on 2005-01-13 17:20:57:
Logged In: YES 
user_id=79902

Shift-B1-Motion now seems reasonable. There are probably
some subtle faults there still, but even so.

Don't understand the 'multiple directories' problem yet.

dkf added on 2005-01-13 16:56:08:
Logged In: YES 
user_id=79902

IconList_Selection and IconList_Arrange fixed and
Control-B1-Motion set to noop in CVS HEAD.

Can't work on focus handling (I'm marooned on WinXP) and
Shift-B1 bindings need more complex solution, so this bug is
not yet finished with.