Skip to content

Commit abd9756

Browse files
delvhsilverwind
authored andcommitted
Rewrite key handler for .ui.button to only capture <span> and <div>
1 parent ac6a6ae commit abd9756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/features/common-global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function initGlobalEnterQuickSubmit() {
5656
}
5757

5858
export function initGlobalButtonClickOnEnter() {
59-
$(document).on('keypress', '.ui.button:not(button,a)', (e) => {
59+
$(document).on('keypress', 'div.ui.button,span.ui.button', (e) => {
6060
if (e.code === ' ' || e.code === 'Enter') {
6161
$(e.target).trigger('click');
6262
e.preventDefault();

0 commit comments

Comments
 (0)