3
0
mirror of https://github.com/britzl/monarch.git synced 2025-06-27 02:17:53 +02:00

Update README.md

This commit is contained in:
Björn Ritzl 2017-12-08 06:47:57 +01:00 committed by GitHub
parent 6caa41e9f6
commit a6e4cd0771
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,9 +107,9 @@ Monarch will send focus gain and focus loss messages if a Focus Url was provided
local monarch = require "monarch.monarch"
function on_message(self, message_id, message, sender)
if message_id == monarch.FOCUS_GAINED then
if message_id == monarch.FOCUS.GAINED then
print("Focus gained, previous screen: ", message.id)
elseif message_id == monarch.FOCUS_LOST then
elseif message_id == monarch.FOCUS.LOST then
print("Focus lost, next screen: ", message.id)
end
end