Keyboard layout issue with Arabic

Hello,

When I switch my input to "Arabic (QWERTY, Eastern Arabic Numerals) and enable the numpad, only the numbers 0 and 5 works, the other keypad strokes moves the screen and the cursor around. I checked the settings and the mouse keys aren't enabled and that issue that doesn't happen with normal English layout. Appreciate any direction on what to debug next to get to the bottom of this.

EDIT: Works fine on X11, so it's definitely a Wayland specific problem

I have no idea if this is related at all, but perhaps might give you a clue:

Thank you, but it was a different issue. While I don't know why that was happening, it was ultimetly fixed by editing the layout directly and removing the navigation part and making the numpad ALWAYS emits the numerals that I want. Not a general fix, but something that works for me. This was the code that I edited:

// Replaces the Western numeral signs with Arabic-script digits on the keypad.
// Modified to *always* emit Arabic digits, removing KP_* navigation from level 1.
partial hidden keypad_keys
xkb_symbols "digits_KP" {

    // No FOUR_LEVEL_MIXED_KEYPAD type: avoid nav semantics on Wayland
    key <KP7>  { [ Arabic_7 ] };
    key <KP8>  { [ Arabic_8 ] };
    key <KP9>  { [ Arabic_9 ] };

    key <KP4>  { [ Arabic_4 ] };
    key <KP5>  { [ Arabic_5 ] };
    key <KP6>  { [ Arabic_6 ] };

    key <KP1>  { [ Arabic_1 ] };
    key <KP2>  { [ Arabic_2 ] };
    key <KP3>  { [ Arabic_3 ] };

    key <KP0>  { [ Arabic_0 ] };

    // Keep punctuation/ops as usual
    key <KPDL> { [ KP_Separator, KP_Decimal ] };
    key <KPMU> { [ KP_Multiply ] };
    key <KPDV> { [ KP_Divide ] };
    key <KPAD> { [ KP_Add ] };
    key <KPSU> { [ KP_Subtract ] };
    key <KPEN> { [ KP_Enter ] };
    key <NMLK> { [ Num_Lock ] };
    
    include "kpdl(momayyezoss)"
};

I've also submitted a bug report to Zorin team

2 Likes

Which file(s) did you edit?

oh, yeah sorry, forgot to mention that. It’s

/usr/share/X11/xkb/symbols/ara
1 Like

Thanks, it'll be good too have this handy in case someone else runs into this issue. If you figure out what is the cause or a better solution, please report back :slight_smile:

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.