Commit 0b43bc1
feat: add keyboard focus management for plugin surfaces
1. Added setKeyboardFocus method to PluginSurface class to handle
keyboard focus via Wayland seat
2. Exposed the method as Q_INVOKABLE for QML access
3. Implemented focus handling in ShellSurfaceItemProxy when hovered
4. Includes necessary QWaylandSeat header for keyboard focus management
5. This ensures proper keyboard input handling when interacting with
plugin surfaces
feat: 为插件表面添加键盘焦点管理
1. 在 PluginSurface 类中添加 setKeyboardFocus 方法,通过 Wayland seat 处
理键盘焦点
2. 将方法暴露为 Q_INVOKABLE 以便 QML 访问
3. 在 ShellSurfaceItemProxy 中实现悬停时的焦点处理
4. 包含必要的 QWaylandSeat 头文件用于键盘焦点管理
5. 确保与插件表面交互时能正确处理键盘输入
Pms: BUG-3127951 parent 62d3e7f commit 0b43bc1
File tree
2 files changed
+32
-0
lines changed- panels/dock
2 files changed
+32
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
434 | 438 | | |
435 | 439 | | |
436 | 440 | | |
| |||
685 | 689 | | |
686 | 690 | | |
687 | 691 | | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
79 | 84 | | |
80 | 85 | | |
81 | 86 | | |
| |||
0 commit comments