Feb 25, 2012, 11:34 AM
[CLOSED] KeyMap Problem
I have implemented one keyNav
below i s my code
Now the problem is that to use the above KeyNav, every time i have to click anywhere on the page,then only it gets activated or else it does not,
if after the page loads and then i press left key it does not fires..i have to click on the page anywhere after that it fires,and again after the direct event gets fires i have to again click on the page to reuse it again
Thanks
below i s my code
<ext:KeyNav ID="KeyNav1" runat="server" Target="={document.body}">
<Left Handler="lnkPrevious.fireEvent('click')" />
<Right Handler="lnkNext.fireEvent('click')" />
</ext:KeyNav>
<ext:Button ID="lnkPrevious" runat="server" Icon="ResultsetPrevious" ToolTip="Previous Document">
<DirectEvents>
<Click OnEvent="lnkPrevious_Click">
</Click>
</DirectEvents>
</ext:Button>
<ext:Button ID="lnkNext" runat="server" Icon="ResultsetNext" ToolTip="next Document">
<DirectEvents>
<Click OnEvent="lnkNext_Click">
</Click>
</DirectEvents>
</ext:Button>
the above code fires the direct event of the particular buttonNow the problem is that to use the above KeyNav, every time i have to click anywhere on the page,then only it gets activated or else it does not,
if after the page loads and then i press left key it does not fires..i have to click on the page anywhere after that it fires,and again after the direct event gets fires i have to again click on the page to reuse it again
Thanks
Last edited by Daniil; Mar 07, 2012 at 8:29 PM.
Reason: [CLOSED]