Added a shift-list property to caps word to allow adding more keys to be shifted aside from alpha keys. Added a &prog_word behavior, which is the same as &caps_word, except it adds MINUS to shift-list (this matches QMK's caps word behavior). Added a no-default-keys property to caps_word, which removes the implicit alphanumeric keys from continue-list and shift-list so you can fully customize the lists. Also adjusted the default continue keys to include numpad numbers, since those are numbers too.
22 lines
No EOL
460 B
Text
22 lines
No EOL
460 B
Text
#include <dt-bindings/zmk/keys.h>
|
|
#include <behaviors.dtsi>
|
|
#include <dt-bindings/zmk/kscan_mock.h>
|
|
#include "../behavior_keymap.dtsi"
|
|
|
|
&caps_word {
|
|
continue-list = <>;
|
|
shift-list = <MINUS>;
|
|
};
|
|
|
|
&kscan {
|
|
events = <
|
|
ZMK_MOCK_PRESS(0,0,10)
|
|
ZMK_MOCK_RELEASE(0,0,10)
|
|
ZMK_MOCK_PRESS(0,1,10)
|
|
ZMK_MOCK_RELEASE(0,1,10)
|
|
ZMK_MOCK_PRESS(1,1,10)
|
|
ZMK_MOCK_RELEASE(1,1,10)
|
|
ZMK_MOCK_PRESS(0,1,10)
|
|
ZMK_MOCK_RELEASE(0,1,10)
|
|
>;
|
|
}; |