Add two more tapdance series for quotation marks

This commit is contained in:
Gergely Polonkai 2022-07-04 13:27:28 +02:00
parent bd4dde2843
commit 43f8c23086
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4
2 changed files with 26 additions and 2 deletions

View File

@ -18,8 +18,30 @@ tapDanceAction(
{ {
switch (tap_dance_index) { switch (tap_dance_index) {
case LEFT_PARENS: case LEFT_PARENS:
return tapDanceActionKeys(tap_count, tap_dance_action, LSHIFT(Key_8), RALT(Key_F), RALT(Key_B)); return tapDanceActionKeys(
tap_count,
tap_dance_action,
LSHIFT(Key_8), RALT(Key_F), RALT(Key_B)
);
case RIGHT_PARENS: case RIGHT_PARENS:
return tapDanceActionKeys(tap_count, tap_dance_action, LSHIFT(Key_9), RALT(Key_G), RALT(Key_N)); return tapDanceActionKeys(
tap_count,
tap_dance_action,
LSHIFT(Key_9), RALT(Key_G), RALT(Key_N)
);
case OPENING_QMS:
return tapDanceActionKeys(
tap_count,
tap_dance_action,
// “ „ «
LSHIFT(RALT(Key_O)), RALT(Key_O), LSHIFT(RALT(Key_M)), LSHIFT(RALT(Key_7)), LSHIFT(RALT(Key_N)), RALT(Key_0)
);
case CLOSING_QMS:
return tapDanceActionKeys(
tap_count,
tap_dance_action,
// ” »
RALT(Key_P), LSHIFT(RALT(Key_Comma)), LSHIFT(RALT(Key_B)), LSHIFT(RALT(Key_0))
);
} }
} }

View File

@ -5,6 +5,8 @@
enum { enum {
LEFT_PARENS, LEFT_PARENS,
RIGHT_PARENS, RIGHT_PARENS,
OPENING_QMS,
CLOSING_QMS,
}; };
extern void extern void