Added system.set_fullscreen() and core:toggle-fullscreen command
This commit is contained in:
@@ -7,6 +7,8 @@ local DocView = require "core.docview"
|
||||
local LogView = require "core.logview"
|
||||
|
||||
|
||||
local fullscreen = false
|
||||
|
||||
command.add(nil, {
|
||||
["core:quit"] = function()
|
||||
core.quit()
|
||||
@@ -16,6 +18,11 @@ command.add(nil, {
|
||||
core.quit(true)
|
||||
end,
|
||||
|
||||
["core:toggle-fullscreen"] = function()
|
||||
fullscreen = not fullscreen
|
||||
system.set_fullscreen(fullscreen)
|
||||
end,
|
||||
|
||||
["core:reload-module"] = function()
|
||||
core.command_view:enter("Reload Module", function(text, item)
|
||||
local text = item and item.text or text
|
||||
|
||||
Reference in New Issue
Block a user