mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
fix: Open File shortcut only working when Hex Editor view is selected
Fixes #576
This commit is contained in:
@@ -1222,7 +1222,7 @@ namespace hex::plugin::builtin {
|
||||
});
|
||||
|
||||
// Open file
|
||||
ShortcutManager::addShortcut(this, CTRL + Keys::O, [] {
|
||||
ShortcutManager::addGlobalShortcut(CTRL + Keys::O, [] {
|
||||
fs::openFileBrowser(fs::DialogMode::Open, {}, [](const auto &path) {
|
||||
EventManager::post<RequestOpenFile>(path);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user