]> wagnertech.de Git - mfinanz.git/blobdiff - js/kivi.ActionBar.js
ActionBar.js: Syntaxfehler behoben (fehlende Semikolons nach Statements)
[mfinanz.git] / js / kivi.ActionBar.js
index 4d5fb54c406b71930a5a8213d7626990f58c8222..1bfe6fd135b70fb7c5a8d4b2a3f3d0996dedc234 100644 (file)
@@ -7,7 +7,7 @@ namespace('kivi', function(k){
     disabled: 'layout-actionbar-action-disabled',
     action:   'layout-actionbar-action',
     combobox: 'layout-actionbar-combobox',
-  }
+  };
 
   k.ActionBarCombobox = function(e) {
     this.combobox = e;
@@ -15,7 +15,7 @@ namespace('kivi', function(k){
     this.toggle   = this.head.childNodes[1];
     this.list     = e.childNodes[0];
     this.init();
-  }
+  };
 
   k.ActionBarCombobox.prototype = {
     init: function() {
@@ -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();
@@ -153,7 +156,7 @@ namespace('kivi', function(k){
         }
       });
     }
-  }
+  };
 });
 
 $(function(){