Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
have you tried event.preventDefault() ?
Mousetrap.bind("alt+1", (e) => { e.preventDefault(); this.focusTextInput(1); }) Mousetrap.bind("alt+2", () => { e.preventDefault(); this.focusTextInput(2) })