فهرست منبع

Adding tab support for tags

When you select a tag currently the only way to select it was by using the enter key. This change allows the tab key to also select it.

Signed-off-by: Eric Barnes <[email protected]>
Eric Barnes 13 سال پیش
والد
کامیت
66b789939f
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      select2.js

+ 1 - 0
select2.js

@@ -1122,6 +1122,7 @@
                         killEvent(e);
                         killEvent(e);
                         return;
                         return;
                     case KEY.ENTER:
                     case KEY.ENTER:
+                    case KEY.TAB:
                         this.selectHighlighted();
                         this.selectHighlighted();
                         killEvent(e);
                         killEvent(e);
                         return;
                         return;