# LShift + RShift = Ctrl + Shift?

**URL:** <https://community.keyboard.io/t/lshift-rshift-ctrl-shift/3161>\
**Category:** Help and Getting Started\
**Created:** [September 1, 2019, 11:44pm UTC](https://community.keyboard.io/t/lshift-rshift-ctrl-shift/3161 "2019-09-01T23:44:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MinorProphet](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@MinorProphet](https://community.keyboard.io/u/MinorProphet)\
**Post date:** [September 1, 2019, 11:44pm UTC](https://community.keyboard.io/t/lshift-rshift-ctrl-shift/3161/1 "2019-09-01T23:44:12Z")

</div>

Is the following possible to do in Chrysalis (gui)?

LShift = LShift  
RShift = RShift  
LShift + RShift = Ctrl + Shift

I would like this setup so that I don’t have to swap which thumbs are hitting Ctrl and Shift depending on which key I am typing for Ctrl+Shift+key.

---

<div class="post-metadata">

**Author:** ![algernon](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/algernon/32/4404_2.png) [@algernon](https://community.keyboard.io/u/algernon)\
**Post date:** [September 9, 2019, 9:11am UTC](https://community.keyboard.io/t/lshift-rshift-ctrl-shift/3161/2 "2019-09-09T09:11:26Z")

</div>

No, it’s not possible to do this in Chrysalis.

---

<div class="post-metadata">

**Author:** ![domenzain](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/domenzain/32/892_2.png) [@domenzain](https://community.keyboard.io/u/domenzain)\
**Post date:** [September 13, 2019, 3:21pm UTC](https://community.keyboard.io/t/lshift-rshift-ctrl-shift/3161/3 "2019-09-13T15:21:39Z")

</div>

I have something that works independently SpaceCadet:

```
int shifts_ = 0;
static void ctrlShift(uint8_t keyState, Key key) {

  if (keyToggledOn(keyState))
    shifts_ += 1;

  if (keyToggledOn(keyState) || keyIsPressed(keyState))
    kaleidoscope::hid::pressKey((shifts_ >= 2) ? Key_LeftControl : key,
                                keyToggledOn(keyState));

  if (keyToggledOff(keyState)) {
    shifts_ -= 1;
    kaleidoscope::hid::releaseKey(Key_LeftControl);
  }
}

```

With the following in `macroAction`:

```
  case MACRO_CTRL_LSHIFT:
   ctrlShift(keyState, Key_LeftShift);
   break;
  case MACRO_CTRL_RSHIFT:
   ctrlShift(keyState, Key_RightShift);
   break;

```

But if I attempt to use SpaceCadet with it, the “tap” key does not appear.

Would you have an idea of how to make the two things work together?

---

<div class="post-metadata">

**Author:** ![domenzain](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/domenzain/32/892_2.png) [@domenzain](https://community.keyboard.io/u/domenzain)\
**Post date:** [September 16, 2019, 4:43pm UTC](https://community.keyboard.io/t/lshift-rshift-ctrl-shift/3161/4 "2019-09-16T16:43:39Z")

</div>

For reference, I got it working with SpaceCadet with the following:

```
/** ctrlShift presses Ctrl + Shift instead of LShift + RShift
 */

static int shifts_ = 0;
static void ctrlShift(uint8_t keyState, Key shift) {
  Key ctrl = Key_LeftControl;
  ctrl.flags |= SHIFT_HELD;

  if (keyToggledOn(keyState) || keyToggledOff(keyState))
    shifts_ += (keyToggledOn(keyState)) ? 1 : -1;

  handleKeyswitchEvent((shifts_ >= 2) ? ctrl : shift, UnknownKeyswitchLocation,
                       keyState);
  kaleidoscope::hid::sendKeyboardReport();
}
```
