1. #1
    Ext User
    Join Date
    Aug 2010
    Posts
    1
    Vote Rating
    0
    t1mmey is on a distinguished road

      0  

    Default Ext.ListView and keypress-Event?

    Ext.ListView and keypress-Event?


    Hello community!

    I have a problem. I want to select items in Ext.ListView using the keyboard. But i can't listen on 'keypress' or another key-event. Has somebody a solution for me to handle Ext.ListView using the keyboard?

    Thanks (:

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,190
    Vote Rating
    63
    aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice

      0  

    Default


    Ext 3.x does not support keyboard navigation for selection. We have done significant work regarding additional keyboard navigation functionality across DataView's, Grid's and ListView's in the Ext 4 branch.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    Jun 2011
    Posts
    10
    Vote Rating
    0
    b0rn is on a distinguished road

      0  

    Question


    Hi,

    I want to create a listener on keypress-Event for my Listview too. I tried something like this

    Code:
    this.myListview.addListener(
        'keypress',
        function(e){
            alert('test');
        }
    );
    I also tried
    Code:
    this.myListview.el.addListener ...
    My code doesn't work. Is there a solution for this?

    What I want to do is a delete-possibility for the rows in my Listview with backspace/delete.

    Greets

  4. #4
    Sencha User
    Join Date
    Dec 2010
    Posts
    137
    Vote Rating
    0
    drian is on a distinguished road

      0  

    Default Any possibility?

    Any possibility?


    Is there any possibility to achieve adding keypress events on a listview?

    I tried adding the listener for keypress and then relaying the event to the element but that did not work. Anyone else has a clue?

    Thanks.

Similar Threads

  1. keypress event is not firing in IE
    By mnakula in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 2 May 2010, 11:54 PM
  2. Ext.Panel keypress event
    By wiulma in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 28 Apr 2010, 6:14 AM
  3. keypress event on Body
    By easycodes in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 28 Jun 2009, 5:06 AM
  4. keypress event
    By dorgan in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 28 May 2008, 3:12 AM

Tags for this Thread