From 5ef10c85ff63aea194a7baf3797ba5ee36fa24fb Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 9 Nov 2016 10:51:16 +0100 Subject: [PATCH] ActionBar.js: Enter auf Comboboxes von Combobox bearbeiten lassen MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Betriebssystemstandard ist, die Combobox zu öffnen. --- js/kivi.ActionBar.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/kivi.ActionBar.js b/js/kivi.ActionBar.js index 4d5fb54c4..adc3eb380 100644 --- a/js/kivi.ActionBar.js +++ b/js/kivi.ActionBar.js @@ -80,9 +80,12 @@ namespace('kivi', function(k){ accesskey += e.which; // special case. HTML elements that make legitimate use of enter will also trigger the enter accesskey. - // so. if accesskey is '13' and the event source is one of these (currently only textarea) ignore it. + // so. if accesskey is '13' and the event source is one of these (currently only textareas & combo boxes) ignore it. // higher level widgets will usually prevent their key events from bubbling if used. - if (accesskey == 13 && e.target.tagName == 'TEXTAREA') return true; + if ( (accesskey == 13) + && ( (e.target.tagName == 'TEXTAREA') + || (e.target.tagName == 'SELECT'))) + return true; if ((target in k.ActionBarAccesskeys.actions) && (accesskey in k.ActionBarAccesskeys.actions[target])) { e.stopPropagation(); -- 2.20.1