Gergely Polonkai
091c29ed2e
The keys labeled as Tab and Enter are now all the brackets. Tap tapped once is `(`, tapped twice is `[`, tapped thrice is `{`. Enter tapped once is `)`, tapped twice is `]`, tapped thrice is `}`.
26 lines
599 B
C++
26 lines
599 B
C++
#include <Kaleidoscope.h>
|
|
|
|
#include "TapDance.h"
|
|
|
|
namespace gpolonkai {
|
|
namespace TapDance {
|
|
bool cancelOneShot = false;
|
|
}
|
|
}
|
|
|
|
void
|
|
tapDanceAction(
|
|
uint8_t tap_dance_index,
|
|
KeyAddr key_addr,
|
|
uint8_t tap_count,
|
|
kaleidoscope::plugin::TapDance::ActionType tap_dance_action
|
|
)
|
|
{
|
|
switch (tap_dance_index) {
|
|
case LEFT_PARENS:
|
|
return tapDanceActionKeys(tap_count, tap_dance_action, LSHIFT(Key_8), RALT(Key_F), RALT(Key_B));
|
|
case RIGHT_PARENS:
|
|
return tapDanceActionKeys(tap_count, tap_dance_action, LSHIFT(Key_9), RALT(Key_G), RALT(Key_N));
|
|
}
|
|
}
|