Revision 5ef10c85
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
js/kivi.ActionBar.js | ||
---|---|---|
80 | 80 |
accesskey += e.which; |
81 | 81 |
|
82 | 82 |
// special case. HTML elements that make legitimate use of enter will also trigger the enter accesskey. |
83 |
// so. if accesskey is '13' and the event source is one of these (currently only textarea) ignore it. |
|
83 |
// so. if accesskey is '13' and the event source is one of these (currently only textareas & combo boxes) ignore it.
|
|
84 | 84 |
// higher level widgets will usually prevent their key events from bubbling if used. |
85 |
if (accesskey == 13 && e.target.tagName == 'TEXTAREA') return true; |
|
85 |
if ( (accesskey == 13) |
|
86 |
&& ( (e.target.tagName == 'TEXTAREA') |
|
87 |
|| (e.target.tagName == 'SELECT'))) |
|
88 |
return true; |
|
86 | 89 |
|
87 | 90 |
if ((target in k.ActionBarAccesskeys.actions) && (accesskey in k.ActionBarAccesskeys.actions[target])) { |
88 | 91 |
e.stopPropagation(); |
Auch abrufbar als: Unified diff
ActionBar.js: Enter auf Comboboxes von Combobox bearbeiten lassen
Betriebssystemstandard ist, die Combobox zu öffnen.