Quantcast
WoWInterface - View Single Post - frame blocks keyboard input
View Single Post
04-08-20, 10:15 AM   #10
blocker147
A Deviate Faerie Dragon
Join Date: Apr 2020
Posts: 12
Originally Posted by Fizzlemizz View Post
Cool! This thing blocked my keyboard. But the next question is how to close MainFrame when escape is pressed? I tried to disable keyboard when key up or key down but this wont work.
Maybe I need to create event OnKeyDown on my button rather than on MainFrame?
Code:
function MainFrame_OnKeyDown()
	if arg1 == "ESCAPE" then MainFrame:Hide() end
end
function MainFrame_OnKeyUp()
	MainFrame:EnableKeyboard(false)
end
  Reply With Quote