дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 19:25:54 +02:00
fix(ui): highlight the menu row under the pointer (#1242)
Menu rows now follow the pointer without taking focus: focusing the row on every pointer enter dropped the hover paint in the Windows webview, so menus looked frozen. Keyboard navigation continues from the hovered row, and an item's onActive fires once per enter. Focus no longer scrolls the page when a menu row takes it. On Solarized Dark the selection and hover colours were the popup and panel colour, so menu, tree, list and tab selection was invisible there; on Solarized Light selection matched the panels. Both themes get distinct selection and hover colours, and the editor keeps Solarized's own selection colour. Co-authored-by: tomgor <[email protected]>
Цей коміт міститься в:
1 джерело
94490e2b37
коміт
c27fea13b3
4 files changed
+77
-11
No files matched your search
@@ -229,6 +229,9 @@ function MainMenuBar({ merged, onExpandedChange }: MainMenuProps & { merged: boo
|
||||
onPointerEnter={() => {
|
||||
if (open !== null) setOpen(i);
|
||||
}}
|
||||
onMouseEnter={() => {
|
||||
if (open !== null) setOpen(i);
|
||||
}}
|
||||
onClick={() => {
|
||||
if (open === i) close();
|
||||
else setOpen(i);
|
||||
|
||||
Reference in new issue
Заблокувати користувача