Skip to content

Commit

Permalink
Fix the shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Jan 22, 2025
1 parent f24ce02 commit d11701b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion workbench/static/workbench/workbench.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ $(() => {
} else if (e.keyCode >= 48 && e.keyCode <= 57) {
const el = _sel(`[data-number-shortcut="${(e.keyCode - 38) % 10}"]`)
if (!el) return
if (el.dataset.ajaxmodal) {
e.preventDefault()
if ("ajaxmodal" in el.dataset) {
window.openModalFromUrl(el.href)
} else {
window.location.href = el.href
Expand Down

0 comments on commit d11701b

Please sign in to comment.