We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69010b8 commit b792a05Copy full SHA for b792a05
source/frontend/root.cpp
@@ -258,9 +258,13 @@ void RootWindow::drawSettingsMenu() {
258
}
259
260
void RootWindow::drawFileMenu() {
261
+ if (ImGui::Shortcut(ImGuiMod_Ctrl | ImGuiKey_O, ImGuiInputFlags_Repeat)) {
262
+ mFileHost.openFile();
263
+ }
264
if (ImGui::BeginMenu("File"_j)) {
265
#if !defined(__EMSCRIPTEN__)
- if (ImGui::MenuItem("Open"_j)) {
266
+ auto openStr = "Open"_j + std::string(" (Ctrl+O)");
267
+ if (ImGui::MenuItem(openStr.c_str())) {
268
mFileHost.openFile();
269
270
#endif
0 commit comments