1. #1
    Ext User
    Join Date
    Aug 2007
    Posts
    84
    Vote Rating
    0
    ohhowihateie is on a distinguished road

      0  

    Default [2.0.1-2.1] Ampersand and Parenthesis in grid view header

    [2.0.1-2.1] Ampersand and Parenthesis in grid view header


    Can anyone tell me why typing an ampersand [&] (Shift-7) or an opening parenthetical mark [(] (Shift-9) in the header row of my grid selects rows in the grid below? The ampersand reverses the current selection going down, and the opening parenthetical mark does the same going up. (Note: This does not occur in any of the editable fields in the EditorGrid.)
    1. Ext version(s): 2.0.1, 2.0.2, 2.1
      add this infomation in brackets to your thread titles like so
    2. ext-base.js
    3. windows (xp AND vista) / mac 10.5.2 / linux (ubuntu/kubuntu x32 AND x64)?
    4. Firefox 2.0.0.14, 2.0.0.15, 3.0b5, Safari 3.1.1 (5525.18) Mac, Safari 3.1 (525.13.3) Windows, Internet Explorer 7.0.6001.18000
    5. code snippet: See working example at http://extjstesting.com/grid/
    6. FireBug stacktrace + line no. where error occurred / error msg if any? NO ERROR MESSAGES
    7. screenshot: http://extjstesting.com/grid/
    8. flash video: http://extjstesting.com/grid/ampersand-parenthesis.swf
    I also tried returning false on the following events:
    Code:
    Grid.on('specialkey', function(c,e){ if(e.getKey()==55 || e.getKey()==57) { return false;} });
    project.on('specialkey', function(c,e){ if(e.getKey()==55 || e.getKey()==57) { return false;} });
    subject.on('specialkey', function(c,e){ if(e.getKey()==55 || e.getKey()==57) { return false;} });
    notes.on('specialkey', function(c,e){ if(e.getKey()==55 || e.getKey()==57) { return false;} });
    but that does not help either.

    I also tried adding this same listener to the GroupingView as follows:
    Code:
    //...      
        view: new Ext.grid.GroupingView({
            forceFit:true,
            ignoreAdd: true,
            emptyText: 'No updates to display',
            listeners: {
              'specialkey': function(c,e){ if(e.getKey()==55 && e.getKey()==57) { return false;} else {alert(e.getKey());} }
            },
            templates: {
                            header: headerTpl
            }
        })
        //...
    Where could these keys be mapped?

  2. #2
    Sencha User
    Join Date
    Apr 2008
    Posts
    36
    Vote Rating
    0
    lacco is on a distinguished road

      0  

Thread Participants: 1