Results 1 to 4 of 4

Thread: Create global listeners for whole application

  1. #1

    Question Create global listeners for whole application

    I would like to implement 'GLOBAL" key listener. I want to implement a key binding to my while application that works regardless which widget is focussed. Is there my application consists of viewport, which has all other content panels, window and etc. However when I add listener to viewport it does not work

    Thanks for help,
    Regards

  2. #2
    Ext GWT Premium Member takayser's Avatar
    Join Date
    Oct 2008
    Location
    Lucerne, Switzerland
    Posts
    188

    Default

    use forum search and you will get it

  3. #3

    Default

    I was looking for resolution on forum but I can not find any similar thread.
    Could You be so kind and give me a link to this one?

    Thanks

  4. #4
    Ext GWT Premium Member takayser's Avatar
    Join Date
    Oct 2008
    Location
    Lucerne, Switzerland
    Posts
    188

    Default

    Code:
    new KeyNav<ComponentEvent>(Document.get()){
      public void onKeyPress(ComponentEvent ce){
       // your code   
      } 
    };

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •