diff options
author | Michael Kuhn <[email protected]> | 2019-04-13 22:36:15 +0200 |
---|---|---|
committer | Michael Kuhn <[email protected]> | 2019-04-14 12:01:52 +0200 |
commit | e38fcd6deac9a63654fb0eb61fffa9ad747e4c50 (patch) | |
tree | b44675f21eaad01efd8b8ab83cc97dc28a499ee5 /js/form/Select.js | |
parent | 4a2a90c980bb7436150ed82556fdb6f4db3ff138 (diff) |
Fix button focus issues
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.
Diffstat (limited to 'js/form/Select.js')
-rwxr-xr-x | js/form/Select.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/form/Select.js b/js/form/Select.js new file mode 100755 index 000000000..c62db1821 --- /dev/null +++ b/js/form/Select.js @@ -0,0 +1,8 @@ +/* global dijit */ +define(["dojo/_base/declare", "dijit/form/Select"], function (declare) { + return declare("fox.form.Select", dijit.form.Select, { + focus: function() { + return; // Stop dijit.form.Select from keeping focus after closing the menu + }, + }); +}); |