| Ticket UUID: | 3efbe4a397fed4008dfcf7467556444f8cb248f2 | |||
| Title: | Console on macOS does not (initially) take focus or accept input | |||
| Type: | Bug | Version: | 8.6.9 rc3 | |
| Submitter: | stevel | Created on: | 2018-11-14 21:49:40 | |
| Subsystem: | 54. [console] | Assigned To: | kevin_walzer | |
| Priority: | 5 Medium | Severity: | Important | |
| Status: | Closed | Last Modified: | 2018-11-27 22:35:12 | |
| Resolution: | Fixed | Closed By: | vtudorache | |
| Closed on: | 2018-11-27 22:35:12 | |||
| Description: |
Using the 8.6.9 rc3 binary supplied by Kevin Walzer, when starting Wish.app the console displays but won't take focus (as evidenced by not accepting input). Clicking on any other window and then on the console allows the console to accept input. | |||
| User Comments: |
vtudorache added on 2018-11-27 22:35:12:
Sorry for being not clear. What I meant was that by adding: Tcl_Eval(interp, "console hide\nconsole show"); in the win\winMain.c at the line 194 within the block checking the console is required exhibits in some circumstances a similar strange focus behavior on Windows (but without blinking caret in the active console window). Maybe there's a more general Tk focus problem. kevin_walzer added on 2018-11-25 02:54:35: The fix I committed was in the Mac C codebase, so this would have nothing to do with Windows. Because the fix has been confirmed, I'm closing this bug report. Thanks to all for their input. vtudorache added on 2018-11-24 20:53:08: The workaround proposed by kevin_walzer on console-fix works on Mac OS Mojave without problem. Observation: adding Tcl_Eval(interp, "console hide ; console show"); in the source code (same place) produces the same behavior (console focus lost) on Windows. Is this somehow related? kevin_walzer added on 2018-11-24 16:17:38: Committed workaround in branch console-fix; console now placed in background on startup and accepts keyboard input when raised. Please confirm this works and I will commit to core-8-6-branch and trunk. vtudorache (claiming to be Vlad Tudorache) added on 2018-11-24 11:08:39: Hello, This behavior is still present in 8.6.9.1 on Mac and I don't see where in the Tk source code the focus is taken. The behavior doesn't show on Windows (compiled with VS 2017 Windows 8.1 SDK, by the way Tk doesn't compile with Windows 10 SDK) however, so I doubt there's a text widget issue. kevin_walzer added on 2018-11-16 13:52:44: This script demonstrates similar behavior: after the popup window is destroyed, the text widget will not accept input until clicking outside the window. The issue seems to be with the grab command. I don't see any "grab" code in the console code, however.
pack [text .t] -side top
pack [button .b -command newwindow -text Dialog] -side bottom
proc newwindow {} {
toplevel .n
button .n.b -command {destroy .n;} -text Close -width 100
pack .n.b
grab .n
}
kevin_walzer added on 2018-11-16 13:38:41: This seems to be an issue with the text widget; I've observed this behavior in other contexts, but I can't come up with a simple script to demonstrate the problem. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki