local keys = require 'vkeys'
function onWindowMessage(msg, wparam, lparam)
if msg == 0x100 or msg == 0x101 then
if wparam == keys.VK_ESCAPE and dialogenable then
consumeWindowMessage(true, false)
if msg == 0x101 then dialogenable = false end
end
end
end