misterdownloadmanager: The ultimate open-source, clean-room download manager written from scratch in pure Rust for Windows, Mac, and Linux
Rust bittorrent-clientdebriddownload-acceleratordownload-managerdownloadmanagereguifile-downloadergallery-dlidmidm-alternativeinternet-download-managerm3u8-downloadermagnetplaylist-downloaderreal-debridrusttorrent-clientvideo-downloaderyoutube-downloaderyt-dlp
Alt and F10 open the menu bar while a control has the focus (#328) (#373)
Ahmed Nefzaoui0dbae53f92bb
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 285e8c1a..184eae2d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,7 @@ Each release's notes on GitHub come from its section here (`## [X.Y.Z]`, see### Fixed+- **Alt** and **F10** open the menu bar while a button or the list has the keyboard focus, not only when nothing does ([#328](https://github.com/anefzaoui/misterdownloadmanager/issues/328)).- Windows: no more crash on a computer where Direct3D can't start, when a window opened during the switch to OpenGL ([#337](https://github.com/anefzaoui/misterdownloadmanager/issues/337)).- Windows: no more crash when a screen is unplugged, turned off or rearranged while MDM runs ([#335](https://github.com/anefzaoui/misterdownloadmanager/issues/335)).### Addeddiff --git a/ROADMAP.md b/ROADMAP.mdindex 7175df6a..54119a36 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -451,6 +451,8 @@ These ship in a later version, when they're ready.### Bugs being looked into+- π Alt and F10 opening the menu bar with a control focused+ ([#328](https://github.com/anefzaoui/misterdownloadmanager/issues/328)): fix in review- π Crash on Windows when a window opens while MDM falls back from Direct3D to OpenGL([#337](https://github.com/anefzaoui/misterdownloadmanager/issues/337)): fix in review- π Crash on Windows when a screen goes away while MDM runsdiff --git a/crates/app/src/app.rs b/crates/app/src/app.rsindex ed9b2acb..4d37f6e9 100644--- a/crates/app/src/app.rs+++ b/crates/app/src/app.rs@@ -6150,8 +6150,12 @@ impl App {// The menu bar from the keyboard: F10 or Alt pressed alone opens its first menu, Alt and a// menu's underlined letter that menu (Windows and Linux); on macOS, whose apps have no// Alt keys, Ctrl+F2 (the system's key for the menu bar).- if self.open_menu.is_none() && self.popup.is_none() && ctx.memory(|m| m.focused().is_none())- {+ // A focused button or list (Tab, a screen reader, #328) leaves these keys to the menu bar;+ // only a text box keeps them.+ let typing = ctx+ .memory(|m| m.focused())+ .is_some_and(|id| egui::TextEdit::load_state(&ctx, id).is_some());+ if self.open_menu.is_none() && self.popup.is_none() && !typing {let labels: Vec<String> = chrome::menus(ui.painter()).iter().map(|(l, ..)| chrome::menu_letter(l))