mirror of
https://tt-rss.org/git/tt-rss.git
synced 2024-07-04 13:10:49 +02:00
This change introduces derived classes for ComboButton, DropDownButton and Select that make sure that buttons do not remain focused after their menus are closed. This allows using hotkeys after closing them.
13 lines
435 B
JavaScript
Executable File
13 lines
435 B
JavaScript
Executable File
/* global dijit */
|
|
define(["dojo/_base/declare", "dijit/form/DropDownButton"], function (declare) {
|
|
return declare("fox.form.DropDownButton", dijit.form.DropDownButton, {
|
|
startup: function() {
|
|
this.inherited(arguments);
|
|
this.dropDown.autoFocus = true; // Allow dropdown menu to be focused on click
|
|
},
|
|
focus: function() {
|
|
return; // Stop dijit.form.DropDownButton from keeping focus after closing the menu
|
|
},
|
|
});
|
|
});
|