From 0ba59e0b7964fc87e9d2a24ea3f24010b01c7f6a Mon Sep 17 00:00:00 2001 From: Syping Date: Sun, 9 Sep 2018 19:01:57 +0200 Subject: [PATCH] add shortcuts --- src/luaengineapp/app.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/luaengineapp/app.lua b/src/luaengineapp/app.lua index 5dc35ce..7af72f5 100644 --- a/src/luaengineapp/app.lua +++ b/src/luaengineapp/app.lua @@ -28,9 +28,11 @@ function main() local menuBar = createMenuBar(mainWindow) local menuFile = createMenu("File", menuBar) local menuEntryExit = createMenuEntry("Exit", menuFile) + setMenuShortcut(menuEntryExit, "Alt+F4") connect(menuEntryExit, "triggered()", "closeWindow") local menuHelp = createMenu("Help", menuBar) local menuEntryAbout = createMenuEntry("About LuaEngine", menuHelp) + setMenuShortcut(menuEntryAbout, "Ctrl+P") connect(menuEntryAbout, "triggered()", "showAboutBox") local labelLayout = createLayout(HorizontalLayout, mainLayout)