timc1/kbar

[Feature] Add property to optionally enable shortcuts on form fields

lauri865 opened this issue · 1 comments

It would be great to be able to selectively enable some shortcuts to run also in active form elements. E.g. having Meta+1-9 shortcut to open a tab (which can easily work on an input field, as Meta+number has no function there.

Related code:

export function shouldRejectKeystrokes(

Benchmark: https://www.npmjs.com/package/react-hotkeys-hook
Properties: enableOnFormTags, enableOnContentEditable

Would be also create to be able to pass a function to check if document.activeElement should or should take priority over kbar shortcuts.

Hey! This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.