1. #1
    Ext User violinista's Avatar
    Join Date
    Apr 2007
    Location
    Serbia
    Posts
    293
    Vote Rating
    0
    violinista is on a distinguished road

      0  

    Default Form without submit button, handling submit with shift+enter...

    Form without submit button, handling submit with shift+enter...


    Hi to all extJS gurus.

    I made a form without submit button, and would like to submit it with shift+enter key combination (like MS Access does).
    I don't have any experience with keyboard handlers, especially with multiple key combinations, have no idea how to start, and any example and suggestion for me would be worthy and much helpful.

    Thank you, much appreciated.
    Regards, Violinista
    "It is better to be young, pretty and rich instead old, ugly and poor."
    (c) Alan Ford.

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,546
    Vote Rating
    64
    Animal is a jewel in the rough Animal is a jewel in the rough Animal is a jewel in the rough

      0  

    Default


    http://extjs.com/deploy/ext-1.1-beta...xt.KeyMap.html

    Create a KeyMap for the form, with key: 13, shift: true

    Do the submission in the handler.

  3. #3
    Ext User violinista's Avatar
    Join Date
    Apr 2007
    Location
    Serbia
    Posts
    293
    Vote Rating
    0
    violinista is on a distinguished road

      0  

    Default


    Thank you, buddy.

    Speaking of Ext 1.1, what are the other differences between 1.0.1 and 1.1? I thought only differences are: HTML editor and bugfixes, but this keyMap stuff rocks! Give to me some directive what is interesting to explore in 1.1 version, besides keyMapping?

    Great team, great library.
    "It is better to be young, pretty and rich instead old, ugly and poor."
    (c) Alan Ford.

  4. #4
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,546
    Vote Rating
    64
    Animal is a jewel in the rough Animal is a jewel in the rough Animal is a jewel in the rough

      0  

    Default


    KeyMap has been in for months.

    Learn to love reading code and docs!

  5. #5
    Ext User violinista's Avatar
    Join Date
    Apr 2007
    Location
    Serbia
    Posts
    293
    Vote Rating
    0
    violinista is on a distinguished road

      0  

    Default


    Love reading code&docs, but don't have enough time to read all...

    Once, when I will have enough time, will learn and maybe I will write some kind of easy-learning introduction for extJs newbies.

    Thanks, man!
    "It is better to be young, pretty and rich instead old, ugly and poor."
    (c) Alan Ford.

Thread Participants: 1