| Ticket UUID: | 1244178 | |||
| Title: | TkAqua: command-n doesn\'t work when minimized | |||
| Type: | Bug | Version: | obsolete: 8.4.9 | |
| Submitter: | muonics | Created on: | 2005-07-25 02:09:50 | |
| Subsystem: | 11. Aqua Menus | Assigned To: | aku | |
| Priority: | 4 | Severity: | Minor | |
| Status: | Open | Last Modified: | 2026-09-28 17:54:01 | |
| Resolution: | None | Closed By: | nobody | |
| Closed on: | ||||
| Description: |
Possibly belongs in events, but: the following code
sets up a menu and binding for command-n to open a new
window. It works if the . toplevel is visible, but if
you minimize or withdraw it then doesn't. Pressing
command-n just causes the background of the "Window"
menu to flash, and that's it.
---
set unique 0
proc top {} {
global unique
incr unique
toplevel .t$unique
}
menu .m
.m add cascade -label "Window" -menu .m.window
menu .m.window
.m.window add command -label "New" \
-accelerator "Command-N" -command top
. config -menu .m
bind . <Command-n> top
| |||
| User Comments: |
kevin_walzer added on 2026-09-28 17:26:18:
No, still does not work on tip of 9.1.. Some bindings are installed by default, such as Command-Q, but custom ones like this require a window to have focus. serhiy.storchaka added on 2026-09-28 16:31:57: This was reported for the Carbon-based TkAqua, which was replaced with Cocoa in 8.5.7/8.6, where the menu key equivalents are handled by NSMenu. The binding bind . <Command-n> cannot work when "." is withdrawn or minimized, since then it has no focus, but the menu accelerator should. Does this still happen with 8.6 or 9.x? nobody added on 2006-04-10 19:13:24: Logged In: NO I see this all the time, and not just if the given window is not visible, but also when it is right there. Vince. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki