[Keyboard] How do I long press on keyboard?

That should already work by using the "Trigger on Key Up" setting for the shortcut:

Combined with the custom click action

1 Like

Oh yes! Thank you.

I'm sorry, I never thought to use two separate actions. That's really great, thank you.

So now I'm wondering: can I do all of the stuff I do in Karabiner Elements, in BTT. The other stuff I have is related to getting my English UK PC keyboard to work fully, and not like an Apple UK keyboard. Like swapping " and @, and putting ` and £ where they should be.

I also use it to assign CapsLock to Cmd+Control+Option+Shift, for then using for further shortcuts.

Karabiner Elements installs as a kext device driver so I guess it works even at the login screen, maybe also across users, which I suppose BTT can't. But other than that I guess BTT can do all of this too?

Thanks again.

Key remapping is better done in Karabiner as it works on a lower level, BTT is more for assigning some non-key actions to keyboard shortcuts.

Swapping " and @ could also be done using a built in tool in macOS, but if Karabiner is working good for you, I'd just leave it.

1 Like

Fair enough. Yeah I haven't touched Karabiner's config in years.

I got my F1 setup working as I hoped in BTT, many thanks again

1 Like

@Andreas_Hegenberg any updates on that one? I really miss that feature, for example I remapped the Dictation button to work as a "push-to-talk" button in Google Meet and I use Shift+Dictation to toggle "permanently" between "mute/unmute", but I would love to be able to just use Dictation button without any modifiers using the option that one could be triggered by a short click, and another one - by the long click.

But then of course there's a question about handling "key up", because when using short click (toggle) - I would only care about "key down", but when using long click (push-to-talk) - I would need to configure "key up" to mute the mic again when stop pressing the button, but ofc I don't want this to have an impact on the short-click behaviour.

I have added this to the latest alpha. For key down you can configure a minimum time before it triggers. For key up you can configure a maximum time before it triggers:

@Andreas_Hegenberg thanks for providing this feature, one of my requirement is long press a single key, not a 'shortcuts', and keep for few seconds such as 2s, will trigger something, it is inspired by 'CheatSheet', while you press '⌘', it will popup the CheatSheet UI, now I want to provide long press 'control' to trigger something in 'Key Sequences' like what you provided in 'Keyboard Shortcuts', do you think it is possible?

Short/long press does work with a single key, like a letter, but not with modifiers.

It's on my TODO list to make this work for modifiers & also add the ability to specify how long a key needs to be pressed in key sequences. This will take a few weeks before being implemented though.

2 Likes

That would be very useful :slight_smile:

If you don't use the modifiers on the right side of the spacebar for shortcuts (like me), it already works with a Key Sequence. Short pressed action, down/up fast. Long press action, up only and hold the modifier a little longer before releasing.

Is it possible to get a long press also for mouse buttons? I would love such an option. Currently I use "Mac Mouse Fix" just to open mission control when holding middle mouse button. Unfortunately this makes the button to seem by this app only.

@LuiFerreira not yet, but it's high up on my TODO list

Oh, thanks for the quick response! I have no idea how hard it is to develop that, but maybe the app I mentioned may help, it is a open source (GitHub - noah-nuebling/mac-mouse-fix: Mac Mouse Fix - A simple way to make your mouse better.) but it will soon be moving to a paid model. It was a beautiful UI and some nice triggers (such as Hold, Double Click, Click and Drag, Triple Click....)

Many thanks for the app and continue the good work!

it's not hard and I'll definitely add it soon

1 Like

As a paying user, it has been~689 days. Please.

What has been 689 days? I suggest to read before complaining.

Please forgive me for my negligence.

I must have totally missed the part where it was released on the main branch. Last I saw it was in alpha.

Bless you soul!

Ah, YOU are THE paying user! I am very pleased to finally meet you.... just kidding :smiley:

Yeah. I am sorry. I kept reading all the changelogs ever since, but must have missed the addition.

Yes sorry for being annoyed :slight_smile: I don't like it when people mention they are paying users when it's about a feature request. There are so many feature requests and so many users - it really does not matter if you are a paying user or a trial user.