-
-
Notifications
You must be signed in to change notification settings - Fork 40.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change key when pressing SHIF #108
Comments
Are you implementing a firmware AZERTY layout to use with another layout (QWERTY?) on the OS side? Otherwise you may simply include |
Hi Didier |
Autoreply! |
I'm actually using the BÉPO layout, on OS side. If you are interested in keyboard ergonomics, you should definitely have a look at this French layout. Note that it does not work well with the default ErgoDox EZ keymap, but you could try it with the |
I'm asking here instead of creating a new issue because the title match what I want even if the OP is not looking exactly for the same thing. I want what the OP want, but i'm planing on having my own disposition.
On the OS it would be better if it was azerty but it's not a problem to have it on qwerty No problem for altgr, it's just a layer whith function key, but how can I do the change for shift? Thank you |
The way to do this is through a couple of macros - one to jump to the "shifted" layer, and then one for the const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
{
switch(id) {
case 0: // M(0) jumps to shifted layer
if (record->event.pressed) {
register_code(KC_LSFT);
layer_on(2);
} else {
unregister_code(KC_LSFT);
layer_off(2);
}
break;
case 1: // M(1) is the | key
if (record->event.pressed) {
unregister_code(KC_LSFT);
register_code(KC_RALT);
register_code(KC_6);
} else {
unregister_code(KC_6);
unregister_code(KC_RALT);
register_code(KC_LSFT);
}
break;
}
} |
Thanks, took a while because I didn't have the keyboard ready but everything works fine now ! :D |
Hi
I just receiving my keyboard and it is almost my first message I am writting with it...
I have built my first custom hex everythinkg is working great on this side !
I am building an AZERTY (I will contrubute here as I don't see any yet)
As AZERTY has different key when pressing SHIFT I am wondering if there is an easy way to customize this?
For example SHIFT comma needs to be questionmark (it is < in QWERTY)
I like a lot they way to produce layout it is very convenient and I am looking for a simple way to be able to add a key:shift key.
many thanks
belette
The text was updated successfully, but these errors were encountered: