Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-19-23, 07:03 AM   #1
fatrog
A Fallenroot Satyr
Join Date: Nov 2022
Posts: 21
how to use OnKeyDown so it doesn't block other addon nor the game itself

Hello,

I have this part in my addon

Lua Code:
  1. local function onKeyDown(self, key)
  2.     -- code
  3. end
  4.  
  5. local frame = CreateFrame("Frame")
  6. frame:EnableKeyboard(true)
  7. frame:SetScript("OnKeyDown", onKeyDown)

Obviously, as it is written down in the api, it block everything else to use keyboard events. So, what is the method to know what key is pressed without blocking everything?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » how to use OnKeyDown so it doesn't block other addon nor the game itself


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