question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Triggers while focussed on input field since v3.0.0

See original GitHub issue

Since updating to v3.0.0, the hotkeys also trigger while entering text in an input field.

I use the hook like this:

useHotkeys('d', () => toggle());

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
JohannesKlausscommented, Mar 29, 2021

@richardsolomou Finally fixed this behavior in the 3.3.0 version. If a target element has its contentEditable attribute set to true, hotkeys won’t trigger.

2reactions
JohannesKlausscommented, Dec 30, 2020

I am sorry, I’ll look into it. Shouldn’t create a major update before the holidays, haha.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Only trigger event while form field is focused - Stack Overflow
I have a simple form, and I trigger a Bootstrap popover whenever the user focuses on a particular field. The problem is that...
Read more >
onSelect Event triggered on focus · Issue #360 - GitHub
For some reason, after an item was already selected, the 'onSelect' event is triggered when the input field receives focus.
Read more >
Focusing: focus/blur - The Modern JavaScript Tutorial
The focus event is called on focusing, and blur – when the element loses the focus. Let's use them for validation of an...
Read more >
.focus() | jQuery API Documentation
The focus event is sent to an element when it gains focus. This event is implicitly applicable to a limited set of elements,...
Read more >
JQuery | Set focus on a form input text field on page load
jQuery focus() Method: The focus event happens when an element gets focus (Either selected by a mouse click or by “tab-navigating” to it)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found