1
0
mirror of synced 2025-02-20 04:01:01 +01:00

fix: Open File shortcut only working when Hex Editor view is selected

Fixes #576
This commit is contained in:
WerWolv 2022-07-08 14:26:13 +02:00
parent a57fa34f82
commit 315109aa1f

View File

@ -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);
});