Tk Source Code

View Ticket
Login
Ticket UUID: 9474bd27059e3c320902b8283ce0377dfc04a724
Title: macOS: Pressing <tab> in wish console for command completion loses keyboard input
Type: Bug Version: 9.1a0, checkout e82ce250368d0c6df08d8141f9c6f174c3209a46
Submitter: ilyagr Created on: 2025-06-05 01:18:31
Subsystem: 54. [console] Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2026-10-04 20:31:56
Resolution: Fixed Closed By: jan.nijtmans
    Closed on: 2026-10-04 20:31:56
Description:

I compiled the Wish Shell app following the instructions in https://core.tcl-lang.org/tk/file?name=macosx/README&ci=tip, using make install-embedded INSTALL_ROOT=....

I then ran open emb/Applications/Utilities/Wish\ Shell.app to open the shell, and typed in<TAB> into the console.

This provided me with 3 possible completions (as expected), incr info interp.

Expected behavior: I should be able to keep typing.

Actual behavior: At this point, the window seemed to lose keyboard focus. I couldn't type anything more into the window without first clicking it with the mouse.

The problem seems to only occur for some forms of completion. For example, filename completion seemed to work fine.

I'm using macOS Sonoma 14.7.6 on ARM.

I compiled Tk checkout e82ce250368d0c6df08d8141f9c6f174c3209a46 (from 2 days ago?) with Tcl checkout fa3d2b602fac864aa1783f6e2c861ef320e6936b (from today), assuming I interpreted fossil's output correctly.

User Comments: jan.nijtmans added on 2026-10-04 20:31:56:
Fixed in [554db8de87a77247|trunk] and core-9-0-branch

Many thanks! Closing

serhiy.storchaka added on 2026-09-19 11:02:02:

<Tab> is also <<NextWindow>> for the all tag, so after the expansion the focus was moved to the next focusable widget: on aqua the console scrollbar, which has key bindings. Fixed in [bcea1c19e4] (branch console-tab-focus).