The player presses the Tab key to toggle focus on or off. Toggling focus on lets them type in the input, toggling it off puts focus back to the map so they can use verb macros normally.
Toggling focus on to the input works. But then pressing Tab again doesn't take focus off. It just continues letting them type letters into the input instead of being able to use their verb macros.
mob/verb/MouseFocusToggle()
set hidden=1
world<<"called"
if(winget(usr,"outputwindow.input1","focus") == "true")
winset(usr,"outputwindow.input1","focus=false")
winset(usr,"mainwindow.map","focus=true")
world<<"true"
else
winset(usr,"mainwindow.map","focus=false")
winset(usr,"outputwindow.input1","focus=true")
world<<"false"
So why can't I take focus away from the input with this? Thanks