mirror of
https://github.com/britzl/monarch.git
synced 2025-06-27 10:27:49 +02:00
Update README.md
This commit is contained in:
parent
6caa41e9f6
commit
a6e4cd0771
@ -107,9 +107,9 @@ Monarch will send focus gain and focus loss messages if a Focus Url was provided
|
|||||||
local monarch = require "monarch.monarch"
|
local monarch = require "monarch.monarch"
|
||||||
|
|
||||||
function on_message(self, message_id, message, sender)
|
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)
|
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)
|
print("Focus lost, next screen: ", message.id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user