mirror of
https://tt-rss.org/git/tt-rss.git
synced 2024-07-02 12:50:52 +02:00
e38fcd6dea
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
423 B
JavaScript
Executable File
13 lines
423 B
JavaScript
Executable File
/* global dijit */
|
|
define(["dojo/_base/declare", "dijit/form/ComboButton"], function (declare) {
|
|
return declare("fox.form.ComboButton", dijit.form.ComboButton, {
|
|
startup: function() {
|
|
this.inherited(arguments);
|
|
this.dropDown.autoFocus = true; // Allow dropdown menu to be focused on click
|
|
},
|
|
focus: function() {
|
|
return; // Stop dijit.form.ComboButton from keeping focus after closing the menu
|
|
},
|
|
});
|
|
});
|