frame blocks keyboard input
How not to block keyboard bindings when my Frame is shown? For example I want to use WSAD and move with my hero when Frame is shown but I cant.
|
A frame usually does not block keyboard inputs.
Lua Code:
Above code creates a 50 x 50 frame in the middle of the screen. It wont block any keyboard inputs. |
But why my frame could block keyboard input? It depends on the frame size? I found method EnableKeyboard() and it is set to false. Which one frame method could block keyboard input? What should I look for?
|
It would help if you post your code :)
|
4 Attachment(s)
Quote:
And the question is what can block keyboard inputs? Attachment 9435 Attachment 9434 Attachment 9436 Attachment 9437 |
If you put your code within tags, then 300 lines are not too much. That creates a scrollable box.
|
If you have an EditBox (if that's what the second image is suggesting (ebKeyWord)) that could be automatically taking focus.
|
Quote:
Code:
<EditBox name="ebKeyWord" inherits="InputBoxTemplate" enableKeyboard="true" autoFocus="false"> Code:
<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/"> |
|
Quote:
Maybe I need to create event OnKeyDown on my button rather than on MainFrame? Code:
function MainFrame_OnKeyDown() |
Frame names are global so MainFrame is not a good name. You should also add $parent to subframe names (and/or use the parentKey attribute).
Code:
<Frame name="blocker147MainFrame" movable="true" enableMouse="true"> |
All times are GMT -6. The time now is 05:56 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI