Thread Tools Display Modes
03-20-09, 09:21 AM   #1
PeterP
A Murloc Raider
Join Date: Mar 2009
Posts: 5
Question determine wheter keyBindings should be run or not

hi there,

iam searching for a variable that indicates wheter i am in an editbox (cursor is blinking and waiting for key input) or not. editboxes for example can be the chatFrameEditBox or the friendsAddEditBox... i need this to determine, wheter keybindings should be run or not. so if i am in an editbox, keybindings are turned off by default. e.g. if i am pressing c while in an editbox, there wont show the "character sheet". now i need that variable that saves the status wheter keybindings should be run or not.

sth. like:
Code:
if (runKeybindings) then
  ChatFrame1:AddMessage("keybindings will be run")
else
  ChatFrame1:AddMessage("keybindings wont be run")
end
hope you got what i mean, my english is pretty bad

greetings

peter
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » determine wheter keyBindings should be run or not


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off