qmk_firmware/quantum
Zsolt Parragi 805f5cb72b
One shot support for swap hands (#8590)
This commits add the SH_OS keycode, which works similarly to one shot
layers:
* while pressed, the keyboard is swapped
* if no keys were pressed while it was pressed, the next key press is
swapped

SH_OS also supports chaining with one shot layers:
OSL(x) + SH_OS + key interprets the key press on the oneshot layer.

The ONESHOT_TIMEOUT setting used by one shot keys and layers is also
used by oneshot swap hands. In the above chaining scenario the timeout
of the oneshot layer is reset when swap hands is activated.

Resolves #2682
2020-05-14 07:36:55 +10:00
..
api
audio
backlight
debounce
keymap_extras
process_keycode
rgb_matrix_animations
rgb_matrix_runners
serial_link
split_common
stm32
template
tools
visualizer
api.c
api.h
color.c
color.h
config_common.h
debounce.h
dip_switch.c
dip_switch.h
dynamic_keymap.c
dynamic_keymap.h
dynamic_macro.h
encoder.c
encoder.h
fauxclicky.c
fauxclicky.h
keycode_config.c
keycode_config.h
keymap.h
keymap_common.c
led_matrix.c
led_matrix_drivers.c
led_tables.c
led_tables.h
ledmatrix.h
matrix.c
matrix_common.c
mcu_selection.mk
pointing_device.c
pointing_device.h
quantum.c
quantum.h
quantum_keycodes.h
rgb.h
rgb_matrix.c
rgb_matrix.h
rgb_matrix_drivers.c
rgb_matrix_types.h
rgblight.c
rgblight.h
rgblight_breathe_table.h
rgblight_list.h
rgblight_modes.h
rgblight_post_config.h
send_string_keycodes.h
variable_trace.c
variable_trace.h
velocikey.c
velocikey.h
via.c
via.h
wpm.c
wpm.h