the-via / releases

GNU General Public License v3.0
2.04k stars 222 forks source link

Unicode emoji support? #64

Open nakulbende opened 3 years ago

nakulbende commented 3 years ago

Does via support keymaps to be unicode compatible. You can do this in QMK with UC(c).

JonnyHaystack commented 3 years ago

Same question, why can't I use a UC keycode in VIA? I just want to be able to type the GBP symbol without changing my system keyboard layout

EDIT: Seeing as this feature seems to vary between OSes anyway, I ended up using a macro to input an Alt code for Windows and I will just use the compose key for Linux I guess.

BradMello commented 3 years ago

@JonnyHaystack Can you share the macro code that you entered to get the GBP symbol? I tried:

{KC_RALT},{KC_PPLS}{KC_P0}{KC_P1}{KC_P6}{KC_P3}} and it isn't working. How did you emulate the holding of the alt key, pressing the sequence of numpad buttons, then releasing the alt key?

JonnyHaystack commented 3 years ago

@JonnyHaystack Can you share the macro code that you entered to get the GBP symbol? I tried:

{KC_RALT},{KC_PPLS}{KC_P0}{KC_P1}{KC_P6}{KC_P3}} and it isn't working. How did you emulate the holding of the alt key, pressing the sequence of numpad buttons, then releasing the alt key?

Not sure why you have the keypad + in there, but I'm guessing you interpreted Alt + as that you have to press Alt then plus then an alt code, but that's not what the plus actually means there.

Also that alt code doesn't seem right to me. This is what I use: {KC_LALT,KC_P1,KC_P5,KC_P6}

I no longer use Via (had to disable the feature because the 32U4 has such inconveniently small program memory 😢), so my macro is done like so in code:

if (record->event.pressed) {
    SEND_STRING(
        SS_DOWN(X_LALT)
        SS_TAP(X_P1) SS_TAP(X_P5) SS_TAP(X_P6)
        SS_UP(X_LALT)
    );
}
BradMello commented 3 years ago

Thank you, that worked for me. Cheers!

schrodyn commented 9 months ago

Sorry to issue hijack but I have a similar problem and I feel it fits here.

With QMK I can do send_unicode_string("¯\\_(ツ)_/¯"); but I'm unsure how to create a macro using Via. Pasting ¯\_(ツ)_/¯ into a Macro using usevia.app generates an error. Hoping someone can help me.