Commit b223fe1
authored
fix(webview/macos): frameless windows must become key + route input to WKWebView (#51)
* fix(webview/macos): borderless windows must become key + route input to WKWebView
A borderless NSWindow returns NO from -canBecomeKeyWindow by default, so
frameless windows never took key focus and their WKWebView never became first
responder, killing all keyboard and mouse input. Use a keyable NSWindow subclass
for the frameless branch and call makeFirstResponder: on the webview after
setContentView and in Show/Focus.
* style(webview/macos): clang-format the LaufeyKeyableWindow comment
The 4-line comment block above LaufeyKeyableWindow exceeded the 80-col
ColumnLimit, failing the CI clang-format check. Reflow it to fit.1 parent 203427d commit b223fe1
1 file changed
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
194 | 211 | | |
195 | 212 | | |
196 | 213 | | |
| |||
886 | 903 | | |
887 | 904 | | |
888 | 905 | | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
889 | 914 | | |
890 | 915 | | |
891 | 916 | | |
| |||
981 | 1006 | | |
982 | 1007 | | |
983 | 1008 | | |
| 1009 | + | |
| 1010 | + | |
984 | 1011 | | |
985 | 1012 | | |
986 | 1013 | | |
| |||
1444 | 1471 | | |
1445 | 1472 | | |
1446 | 1473 | | |
| 1474 | + | |
1447 | 1475 | | |
1448 | 1476 | | |
1449 | 1477 | | |
1450 | 1478 | | |
1451 | 1479 | | |
| 1480 | + | |
1452 | 1481 | | |
1453 | 1482 | | |
1454 | 1483 | | |
1455 | 1484 | | |
1456 | 1485 | | |
| 1486 | + | |
| 1487 | + | |
1457 | 1488 | | |
1458 | 1489 | | |
1459 | 1490 | | |
| |||
1480 | 1511 | | |
1481 | 1512 | | |
1482 | 1513 | | |
| 1514 | + | |
1483 | 1515 | | |
1484 | 1516 | | |
1485 | 1517 | | |
1486 | 1518 | | |
1487 | 1519 | | |
| 1520 | + | |
1488 | 1521 | | |
1489 | 1522 | | |
1490 | 1523 | | |
1491 | 1524 | | |
1492 | 1525 | | |
| 1526 | + | |
| 1527 | + | |
1493 | 1528 | | |
1494 | 1529 | | |
1495 | 1530 | | |
| |||
0 commit comments