mirror of
https://gitlab.com/Syping/luaengineapp.git
synced 2024-11-05 05:26:55 +01:00
add shortcuts
This commit is contained in:
parent
47fbb8c2a9
commit
0ba59e0b79
1 changed files with 2 additions and 0 deletions
|
@ -28,9 +28,11 @@ function main()
|
||||||
local menuBar = createMenuBar(mainWindow)
|
local menuBar = createMenuBar(mainWindow)
|
||||||
local menuFile = createMenu("File", menuBar)
|
local menuFile = createMenu("File", menuBar)
|
||||||
local menuEntryExit = createMenuEntry("Exit", menuFile)
|
local menuEntryExit = createMenuEntry("Exit", menuFile)
|
||||||
|
setMenuShortcut(menuEntryExit, "Alt+F4")
|
||||||
connect(menuEntryExit, "triggered()", "closeWindow")
|
connect(menuEntryExit, "triggered()", "closeWindow")
|
||||||
local menuHelp = createMenu("Help", menuBar)
|
local menuHelp = createMenu("Help", menuBar)
|
||||||
local menuEntryAbout = createMenuEntry("About LuaEngine", menuHelp)
|
local menuEntryAbout = createMenuEntry("About LuaEngine", menuHelp)
|
||||||
|
setMenuShortcut(menuEntryAbout, "Ctrl+P")
|
||||||
connect(menuEntryAbout, "triggered()", "showAboutBox")
|
connect(menuEntryAbout, "triggered()", "showAboutBox")
|
||||||
|
|
||||||
local labelLayout = createLayout(HorizontalLayout, mainLayout)
|
local labelLayout = createLayout(HorizontalLayout, mainLayout)
|
||||||
|
|
Loading…
Reference in a new issue