My priority is programming characters with diacritics for us in Spanish in Windows and Linux (á, ñ, ü, etc.) with as minimal OS modification as possible. The other was enabling Dynamic Macros.
The first objective was a partial success. I created 2 base layouts (1 for Windows and another for Linux) and switch them with programmed keys. Linux works perfectly. However, one of my diacritics is not working in Windows. While á, é, í, ó, ú and ü work fine, when I send to ñ in a browser it also triggers a Browser Back Key. Therefore, the entry is lost. I don't understand what is happening.
This is the code for ñ:
Code: Select all
case NHAT:
if (record->event.pressed) {
// when keycode NHAT pressed
SEND_STRING(SS_DOWN(X_LALT) SS_TAP(X_P1) SS_TAP(X_P6) SS_TAP(X_P4) SS_UP(X_LALT));
} else {
// when keycode NHAT is released
}
break;
Code: Select all
case AHAT:
if (record->event.pressed) {
// when keycode AHAT pressed
SEND_STRING(SS_DOWN(X_LALT) SS_TAP(X_P1) SS_TAP(X_P6) SS_TAP(X_P0) SS_UP(X_LALT));
} else {
// when keycode AHAT is released
}
break;
The other objective that I had was dynamic macros. Whenever I enable this, the keyboard becomes non-responsive. I even got to disassemble it to put it in booloader mode. Has anybody experienced this? Anybody knows why is this happening or what I could be doing wrong?
Got bless the LSHIFT+RSHIFT+B combination that places it in bootloader mode even it your don't assign a key for it. BTW, how is this happening? Where in the directory structure is the file that is being included into the compile so that this happens? I'm curious about the INCLUDE that is pulling this magic.
The other problem that I'm facing is that sometimes when I press the Backspace twice the keyboard generates a print screen. It is not always, however. I wondered if like the LSHIFT+RSHIFT+B combination, there was a Tap Dance program activated by a sequence that I don't understand. However, while I type this I realize that the print screen key is next to the backspace. What if the problem is not software? I'm going to deactivate that key from the base layer to see if the problem disappears. Anyway, I'm curious about what happens in the back that I don't see in my keymap.c.
Thanks