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)