# Macros with modifiers

**URL:** <https://community.keyboard.io/t/macros-with-modifiers/909>\
**Category:** Programming\
**Created:** [December 30, 2017, 7:44am UTC](https://community.keyboard.io/t/macros-with-modifiers/909 "2017-12-30T07:44:06Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![fire](https://avatars.discourse-cdn.com/v4/letter/f/67e7ee/32.png) [@fire](https://community.keyboard.io/u/fire)\
**Post date:** [December 30, 2017, 9:10pm UTC](https://community.keyboard.io/t/macros-with-modifiers/909/4 "2017-12-30T21:10:55Z")

</div>

Oh ok, it’s wasModifierActive(Key\_LeftShift).

These threads are also helpful:

> [@Is there a way to change the effect of chorded modifier keys without making them layer keys?](https://community.keyboard.io/t/is-there-a-way-to-change-the-effect-of-chorded-modifier-keys-without-making-them-layer-keys/831/2):
>
> The easiest, in my opinion, would be a custom event handler hook, something along these lines: Key customControls(Key mapped\_key, byte row, byte col, uint8\_t key\_state) { // If none of the controls are pressed, fall through. if (!kaleidoscope::hid::wasModifierKeyActive(Key\_LeftControl) && !kaleidoscope::hid::wasModifierKeyActive(Key\_RightControl) { return mapped\_key; // Either left or right control is active! // If the key isn't C, fall through if (mapped\_key != Key\_C) …

> [@Some funky shift customizations I’d like to make slight\_smile](https://community.keyboard.io/t/some-funky-shift-customizations-i-d-like-to-make/716/4):
>
> Yeah… hm. Perhaps releaseing shifts, then sending a report, then the backslash would help? And do the release+report combo only on keyToggledOn, not while keyIsPressed? Just a hunch. (Sorry for the brevity, kinda time-pressed here and can’t elaborate :/)

> [@Mapping International Characters](https://community.keyboard.io/t/mapping-international-characters/556/49):
>
> What do you get when you type Fn+shift+unicode macro when using that sketch?

---

_[View the full topic](https://community.keyboard.io/t/macros-with-modifiers/909)._
