summaryrefslogtreecommitdiff
path: root/js/form/ComboButton.js
diff options
context:
space:
mode:
authorfox <[email protected]>2019-04-14 14:15:13 +0000
committerGogs <[email protected]>2019-04-14 14:15:13 +0000
commit525298569ec9041e672dee60e20565b2e0dc0923 (patch)
tree3754456ae513d7c59e872a35880317e578d7df4b /js/form/ComboButton.js
parenta2be311f524f6456b9b22fbf2c0cd5a847240a10 (diff)
parente38fcd6deac9a63654fb0eb61fffa9ad747e4c50 (diff)
Merge branch 'hotkeys-focus' of suraia/tt-rss into master
Diffstat (limited to 'js/form/ComboButton.js')
-rwxr-xr-xjs/form/ComboButton.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/form/ComboButton.js b/js/form/ComboButton.js
new file mode 100755
index 000000000..1084cda9c
--- /dev/null
+++ b/js/form/ComboButton.js
@@ -0,0 +1,12 @@
+/* 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
+ },
+ });
+});