Commit a63012e
committed
fix: 'z' key triggers zoom instead of typing in text fields (#10684)
On Windows, pressing 'z' while a custom TextInput widget was focused
triggered the canvas 'zoom to fit' shortcut instead of inserting the
character. is_text_entry_focused() only walked up the parent chain;
on Windows focus sometimes lands on the outer StaticBox container
rather than the inner wxTextCtrl. Extend the check to also scan
direct children of the focused window.
Closes #106841 parent 2263815 commit a63012e
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
105 | 108 | | |
106 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
107 | 117 | | |
108 | 118 | | |
109 | 119 | | |
| |||
0 commit comments