View Single Post
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