Thread Tools Display Modes
01-08-07, 10:18 PM   #1
TheColonel
A Kobold Labourer
Join Date: Jan 2007
Posts: 1
Returning to Original handler from XML Script Tag?

I'm not 100% sure if this is possible, i've had no luck finding pre-made examples that do this .. i'm also open to other ways to handle this situation.

Basically, I have an EditBox that I do not want text to be able to be typed in to, but needs to have a blinking cursor, so it can recieve Item Links to be shift clicked into it. This part works fine by using EnableKeyboard(false) on it. However, of course, this means that the user can no longer press Enter after putting the item link into the box.

I've used the OnKeyUp function from the parent frame, and this works, i can use an if (Enter) then and it works fine, however every other key does NOTHING now.

Is there a way to pass the function back to the normal handler if it doesnt meet my If condition? (I've tried return; doesn't work)

Basically, I want the game to handle any key press EXCEPT enter, while my frame has focus.

Any ideas? Or alternative ways to approach the situation?

Thanks in advance!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Returning to Original handler from XML Script Tag?


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