TMK Firmware - Shifted key on FN Layer

nicstreet

14 Jan 2016, 11:58

Afternoon all,

Hopefully someone can assist. I have changed the layout on my board and have "/?' on my FN0 layer (Q), however I want FN+Q to give me question mark not forward slash. How do I get the shifted state of this key? :oops:

Thanks

Nic

User avatar
flabbergast

14 Jan 2016, 12:11

AFAIK you would assign an unused FN to that key, and assign to it a macro that presses shift and slash. I'm not aware of any other method, since there is no keyboard code that a keyboard could send that would indicate a single key producing the question mark. (It's important to understand this if you're using the question mark as a part of a some keyboard combo on the computer - it will be effectively, say, C-A-S-/ instead of C-A-?.)

Here's what's referenced for this on TMK FAQ: http://deskthority.net/workshop-f7/tmk- ... ml#p195620

User avatar
Ray

14 Jan 2016, 17:01

Actually, no need for a macro. But flabbergast has the right idea nonetheless.
On the FN0 layer, you don't put "/?" in there, but another FN-"key"
And that FN gets
[#] = ACTION_MODS_KEY(MOD_LSFT, KC_SLSH);

nicstreet

14 Jan 2016, 17:20

Thanks gents, just applied Ray's solution and it is now working as desired, appreciate your time and effort :)

Nic

User avatar
flabbergast

14 Jan 2016, 17:23

Ah, right, forgot about the ACTION_MODS_KEY. Thanks, Ray!

Post Reply

Return to “Workshop”