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.)- Ext version(s): 2.0.1, 2.0.2, 2.1
add this infomation in brackets to your thread titles like so
- ext-base.js
- windows (xp AND vista) / mac 10.5.2 / linux (ubuntu/kubuntu x32 AND x64)?
- 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
- code snippet: See working example at http://extjstesting.com/grid/
- FireBug stacktrace + line no. where error occurred / error msg if any? NO ERROR MESSAGES
- screenshot: http://extjstesting.com/grid/
- 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?