added calculator to filechooser

closes #232
This commit is contained in:
NuPogodi
2012-08-28 23:09:28 +02:00
committed by Dobrica Pavlinusic
parent ebe6b87587
commit bfe8a5d84f

View File

@@ -549,6 +549,14 @@ function FileChooser:addAllCommands()
return "break"
end
)
self.commands:add(KEY_K, MOD_SHIFT, "K",
"run calculator",
function(self)
local CalcBox = InputBox:new{ calcmode = true }
CalcBox:input(0, 0, "Calc ")
self.pagedirty = true
end
)
end
-- NuPogodi, 23.05.12: returns full filename or nil (if folder)