Results 1 to 2 of 2

Thread: Delete key not triggered by Keymap

  1. #1

    Default Delete key not triggered by Keymap

    Hello,

    I can get the following to work perfectly on a grid to listen to key strokes, but not for the delete button. Does 127 ASCII code not represent the DELETE key? I would like to be able to used the keyboard to select rows from the grid and delete them through the keyboard.

    Code:
    var map = new YAHOO.ext.KeyMap(propsGrid, [
        {
            key: [13],
            fn: function(key, e){ alert('Return was pressed'); }      // fine
        }, {
            key: [127],
            fn: function(key, e){ alert('DELETE was pressed'); }     // no response
        }, {
            key: "\t",
            ctrl:true,
            shift:true,
            fn: function(key, e){ alert('Control + shift + tab was pressed.');  // fine
            }
        }
    ]);
    What am I missing. Your help is as always appreciated.

    Thanks

  2. #2

    Default Try using keyCode=46 for the delete key

    Try using keyCode=46 for the delete key

Similar Threads

  1. determining dot/delete key in event
    By hicker in forum Ext 1.x: Bugs
    Replies: 0
    Last Post: 27 Mar 2007, 12:07 AM
  2. Is keymap currently broken in ext1 a2?
    By papasi in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 7 Mar 2007, 5:59 AM
  3. Delete a resizable
    By alex1er in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 14 Feb 2007, 11:18 PM
  4. <script> blocks not triggered if they contain comments
    By alanwilliamson in forum Ext 1.x: Help & Discussion
    Replies: 11
    Last Post: 11 Dec 2006, 7:13 AM

Posting Permissions

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