diff --git a/web/src/hotkey.js b/web/src/hotkey.js index 6c91f6b2af..6a052b48d7 100644 --- a/web/src/hotkey.js +++ b/web/src/hotkey.js @@ -560,6 +560,14 @@ function handle_popover_events(event_name) { // Returns true if we handled it, false if the browser should. export function process_enter_key(e) { + if ($(e.currentTarget).hasClass("trigger-click-on-enter")) { + // If the target has the class "trigger-click-on-enter", explicitly + // trigger a click event on it to call the associated click handler. + e.preventDefault(); + $(e.currentTarget).trigger("click"); + return true; + } + if (popovers.any_active() && $(e.target).hasClass("navigate-link-on-enter")) { // If a popover is open and we pressed Enter on a menu item, // call click directly on the item to navigate to the `href`. diff --git a/web/templates/more_pms.hbs b/web/templates/more_pms.hbs index 121d8a04b1..ba5ef46398 100644 --- a/web/templates/more_pms.hbs +++ b/web/templates/more_pms.hbs @@ -1,5 +1,5 @@