Repository navigation
Commit a86270d
committed
fix(web): Escape and tool keys work as soon as preview annotation starts
Starting annotation left keyboard focus in the app, because main's
WebContents.focus() cannot move the embedder's DOM focus into a webview
guest. Escape and the V/R/D/E tool keys did nothing until the user
clicked inside the page. Focus the tab's <webview> element when the pick
starts; the existing restore puts focus back when annotation ends.
Fixes #32970
AI-assisted; verified with the tests and tools listed above.1 parent 5c6f2f1 commit a86270d
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
151 | | - | |
| 149 | + | |
152 | 150 | | |
153 | 151 | | |
154 | 152 | | |
155 | 153 | | |
156 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
| |||
816 | 820 | | |
817 | 821 | | |
818 | 822 | | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
819 | 826 | | |
820 | 827 | | |
821 | 828 | | |
| |||
0 commit comments