Key tips: translate the hints, drop a held Alt on focus loss

Alt+Tab away left the lone-Alt flag set, so the release on return
opened the key tips.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Hakan SevenandClaude Opus 5.5 committed 2026-10-14 12:15:51 +03:00
1 parent be6dbfdd78
commit 814dd2e3d6
21 files changed
+85 -81

No files matched your search

+5 -1
View File
@@ -629,7 +629,11 @@ impl OpenCADStudio {
if Some(id) == self.main_window {
self.spacemouse_focused = focused;
}
// Key tips close when the window loses the focus.
// Key tips close when the window loses the focus, and an Alt
// held while it left (Alt+Tab) no longer counts as a lone tap.
if !focused {
crate::ui::ribbon::keytip_pointer_pressed();
}
if !focused && self.ribbon.keytips_active() {
return self.hide_keytips();
}