Use global variable instead of hasmapto

hasmapto doesn't work when FocusModeToggle is part of a larger mapping. Better to use a global variable.