pqrs-org / Karabiner-archived

Karabiner (KeyRemap4MacBook) is a powerful utility for keyboard customization.
https://pqrs.org/osx/karabiner/
The Unlicense
3.82k stars 311 forks source link

Is there a way to use "elapsedtimesincelastpressed_lessthan" without limiting to the LAST pressed key? #851

Open Madd0g opened 6 years ago

Madd0g commented 6 years ago

All the examples I've seen of using elapsedtimesincelastpressed_lessthan is with lastpressedphysicalkey_only.

Is there a way to configure it to trigger even if the key wasn't actually the last, but was pressed within the timeframe?

I'm just guessing that's the reason this block fails, I'm interested in pressing CMD and then using SHIFT+KEY within the elapsedtimesincelastpressed_lessthan timeframe.

<block>
    <lastpressedphysicalkey_only>KeyCode::COMMAND_R</lastpressedphysicalkey_only>
    <elapsedtimesincelastpressed_lessthan>Millisecond::RawValue::700</elapsedtimesincelastpressed_lessthan>
    <modifier_not>ModifierFlag::COMMAND_R</modifier_not>
    <autogen>__KeyToKey__ KeyCode::SLASH, ModifierFlag::SHIFT_R, KeyCode::VK_OPEN_URL_SPECIAL_SLASH_SHIFT</autogen>
</block>

Is this possible? Thank you