[Dojo-interest] Howto capture Esc keypress when FloatingPane is used, to close it

Jay jabirfayyaz at yahoo.com
Tue Dec 4 11:24:16 UTC 2007


Hi kiuma,

Thanks for your code snippet. This run perfectly on IE but I am unable to
run this on FF. could you please give me any clue how can i hide floating
pane in FF.

Thanks,
Jay



Andrea Chiumenti wrote:
> 
> Hi, try this
> 
> <script type="text/javascript">
> var eventHandler = {
>             onkeyup: function(evt) {
> 
>                 var unicode = evt.charCode;
>                 if (!unicode)
>                     alert(evt.keyCode);
>                 var unicode = evt.keyCode;
>                 alert( unicode);
>             }
> 
>         };
>     dojo.event.connect(
>             "before",
>             dojo.byId("invisible"),
>             "onkeypress",
>             eventHandler,
>             "onkeyup");
> 
> 
> </script>
> 
> Ciao,
> kiuma
> 
> Sorry for the indentation.
> 
> On 10/10/06, Venkatesh Ramachandran <venky at avendasys.com> wrote:
>>
>> Hi Dojo users,
>>
>> Is there a way to capture the browser keypress for 'Esc' button so that
>> if a FloatingPane is launched, then it can be closed?
>>
>> Thanks,
>> -Venky.
>>
>> --
>> Venkatesh Ramachandran
>> venky at avendasys.com
>>
>> _______________________________________________
>> Dojo FAQ: http://dojo.jot.com/FAQ
>> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
>> Dojo-interest at dojotoolkit.org
>> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>>
> 
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
> 
> 

-- 
View this message in context: http://www.nabble.com/Howto-capture-Esc-keypress-when-FloatingPane-is-used%2C-to-close-it-tf2414157.html#a14148790
Sent from the Dojo mailing list archive at Nabble.com.



More information about the Dojo-interest mailing list