Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5ef10c85

Von Moritz Bunkus vor etwa 7 Jahren hinzugefügt

  • ID 5ef10c85ff63aea194a7baf3797ba5ee36fa24fb
  • Vorgänger 98aafe29
  • Nachfolger 33d6a85c

ActionBar.js: Enter auf Comboboxes von Combobox bearbeiten lassen

Betriebssystemstandard ist, die Combobox zu öffnen.

Unterschiede anzeigen:

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