1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    3
    Vote Rating
    0
    anouar.abdelbari is on a distinguished road

      0  

    Default Unanswered: Detecting keybord Events

    Unanswered: Detecting keybord Events


    I took a look at sencha-touch-all-debug.js and it use Events like touchstart, touchmove... for touch screen and also mouse events but we can not control sencha touch apps with keybord events (keydown, keyuop...). What can I do to make it possible ?

  2. #2
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    827
    Vote Rating
    55
    Answers
    84
    jerome76 has a spectacular aura about jerome76 has a spectacular aura about jerome76 has a spectacular aura about

      0  

    Default


    Most fields fire the key events. Ex: Textfields have the keyup and action events.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    3
    Vote Rating
    0
    anouar.abdelbari is on a distinguished road

      0  

    Default


    That's true but if I want to control my app with my PC's keyboard ( Arrow keys, Enter, Esc....) ???

  4. #4
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    827
    Vote Rating
    55
    Answers
    84
    jerome76 has a spectacular aura about jerome76 has a spectacular aura about jerome76 has a spectacular aura about

      1  

    Default


    You mean like a game? What functionality would this add to a mobile app? Or is it only for devices with attachable keyboards? I'm first just trying to understand why you need such functionality like this.

    I think you should look at the events guide: http://docs.sencha.com/touch/2-0/#!/...ents-section-7

  5. #5
    Sencha User
    Join Date
    Jul 2012
    Posts
    3
    Vote Rating
    0
    anouar.abdelbari is on a distinguished road

      0  

    Default


    Exactly, some tablets and smartphones have an attachable keyboard and i want to add this options to my app. I need some technical help