diegoles / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

goog.ui.tree.TypeAhead incorrectly interprets meta key (apple comman key) as '[' character #445

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Pressing the mac command key in chrome results in a key event like this:
{
  charCode: 0,
  keyCode: 91,
  metaKey: true,
  ...
}

The TreeControl typeahead incorrectly maps this keypress to the '[' character, 
which results in a confusing and unexpected navigation action if there is a an 
entry in the tree starting with '['.

The offending code is in:
goog.ui.tree.TypeAhead.prototype.handleTypeAheadChar

Original issue reported on code.google.com by fay.s...@gmail.com on 30 Mar 2012 at 8:52