Results 1 to 2 of 2

Thread: BasicDialog key events

  1. #1
    Sencha User jarrednicholls's Avatar
    Join Date
    Mar 2007
    Frederick, MD

    Default BasicDialog key events

    Hey Jack,

    As I stated before, the BasicDialog addKeyListener doesn't work when specifying an array of key codes. Also, since most sights will have some non-modal dialogs, the chance for multiple dialogs to be open at one time is much higher. If any 2 opened dialogs are listening to the same keydown events, they all react accordingly. It might be better to figure out a way to scope the key events to within the dialog element rather than attaching to "document". This can be done by creating a invisible anchor (<a>) tag and focus it upon showing the dialog and upon clicking on the dialog header, etc. Then, doing a key event listen on "this.el.dom" would work alright. Essentially, turning the BasicDialog into its own windowing system. Might be good to create a DialogManager class to manage such things. Another good feature along the same lines would be to activate/deactivate dialogs (essentially setting focus to a dialog, just like you would set focus to a window in any traditional windowing system).

    What do you think about that?

    -Jarred Nicholls

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    New York, NY


    Sounds good to me. I will work on it tonight.

Similar Threads

  1. Custom events not working
    By thejoker101 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 29 Mar 2007, 7:09 AM
  2. Events: change and click
    By jbraband in forum Ext 1.x: Help & Discussion
    Replies: 7
    Last Post: 20 Feb 2007, 4:39 PM
  3. registeration form using yui-ext events and DWR
    By sjivan in forum Community Discussion
    Replies: 2
    Last Post: 7 Jan 2007, 8:24 PM
  4. grid events
    By aangrick in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 2 Nov 2006, 5:26 PM

Posting Permissions

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