kbar icon indicating copy to clipboard operation
kbar copied to clipboard

Feature: Adding Action options to prevent keyboard events from firing unintentionally

Open hug-0 opened this issue 2 years ago • 0 comments

Hi @timc1,

First off - I love KBar! It's such a clever and easy to use package to add powerful navigation and keyboard shortcuts to a web experience!

I'm wondering if it would be possible to add some additional options to default keyboard event behavior. I've noticed that holding down a key - with the repeating behaviour on MacOs enabled - events will be performed in quick succession.

Adding something like this the Action options would be a great benefit to adding more control to KBar within a given project:

perform: () => {}
repeat: false, 
// also maybe this if repeat is true
repeateDelay: 100 // ms, would throttle repetition

Thank you in advance, H

hug-0 avatar Nov 09 '23 10:11 hug-0