You are not logged in.
Hello Dears,
I am using OnlyOffica as an Office program. When I am using ( Alt left+Enter ) Keys to insert new line in Cell it's working fine but when I am trying ( Alt right+Enter ) it's not working. Please Advice?
Last edited by HossamMaghrabi (2025-03-09 10:07:37)
Offline
Is "alt right" actuall AltGr, ie. the 3rd level shift?
X11 or wayland? Do you use an https://wiki.archlinux.org/title/Input_method ?
setxkbmap -print -queryOffline
I am using x11 and Arabic language.
for your question Is "alt right" actuall AltGr, ie. the 3rd level shift? I am not sure.
Offline
setxkbmap -print -querywill show what keymap you use and you can also
xev -event keyboard and then press the left and right alt key to see what they produce.
AltGr is not the same as Alt and some Alt+x shortcut or so will not fire on AltGr+x
Offline
Following is the output of the commands
=============(1)================
[admin@archlinux ~]$ setxkbmap -print -query
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+gb+ara(digits):2+inet(evdev)+group(ctrl_shift_toggle)" };
xkb_geometry { include "pc(pc104)" };
};
rules: evdev
model: Latitude
layout: gb,ara
variant: ,digits
options: grp:ctrl_shift_toggle==========(2)============
[admin@archlinux ~]$ xev -event keyboard
bash: xev: command not found======================
Following is the command I am using to set Arabic language,
localectl --no-convert set-x11-keymap gb,ara pc105 ,digits grp:ctrl_shift_togglLast edited by HossamMaghrabi (2025-03-09 03:42:31)
Offline
Please use [code][/code] tags. Edit your post in this regard.
https://archlinux.org/packages/extra/x86_64/xorg-xev/
Both gb and ara have
include "level3(ralt_switch)" so no surprises there.
Esp. for the arabic layout the 3rd level shift also looks rather important to reach a bunch of letters?
Are you just curious about the behavior or does this pose some actual problem?
Otherwise please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
Sorry I didn't get what to try to say. I am new in Linux environment.
Do you mean it's normal in Arch Linux and there no problem and the different in using Left Alt and Right Alt is because I am using Arabic Language (ara parameter)
I appreciate if you explain more if you have a time.
Following is screenshot of (xev -event keyboard) command,
For Left Alt
========
KeyPress event, serial 28, synthetic NO, window 0x1200001,
root 0x23c, subw 0x0, time 100468444, (18,97), root:(612,417),
state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x1200001,
root 0x23c, subw 0x0, time 100468563, (18,97), root:(612,417),
state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: FalseFor Right Alt
=========
KeyPress event, serial 28, synthetic NO, window 0x1200001,
root 0x23c, subw 0x0, time 100586615, (-64,204), root:(530,524),
state 0x0, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
XKeysymToKeycode returns keycode: 92
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x1200001,
root 0x23c, subw 0x0, time 100586695, (-64,204), root:(530,524),
state 0x80, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
XKeysymToKeycode returns keycode: 92
XLookupString gives 0 bytes:
XFilterEvent returns: False============================
Thanks for your support...
Last edited by HossamMaghrabi (2025-03-09 03:40:59)
Offline
Please use [code][/code] tags. Edit your post in this regard.
This has nothing to do w/ (arch) linux or the arabic layout specifically.
You can configure the keyboard layout pretty much however you want.
It is very common (there's even a variant of the US qwerty layout for that) to trade the redundant Alt key in for a different key (despite the confusingly similar "AltGr" name, they're entirely different things) to allow every key to have 4 functions.
Eg. I could not type any of "~{[]}\|" without that feature.
And Alt+Enter and AltGr+Enter are simply not the same key combination, so they will not do the same thing.
If you want something to act on AltGr+Enter, you'll have to (also) configure it for that shortcut, not (just) Alt+Enter.
Offline
You can configure the keyboard layout pretty much however you want.
Is there any configuration for making Right Alt working as Alt not AltGr?
Also, If you can guide me to learn more about this topic, specially, how to handle this kind of problem when I am creating a SW application.
Your support is highly appreciated.
Offline
grep -i lv3 /usr/share/X11/xkb/rules/base.lstsetxkbmap -option "lv3:ralt_alt" should do what you want. Are you sure you want to deactivate the level3 shift? Why?
You understand that you'll lose access to some keys you currently may be using?
Edit: the layouts are plain-text files in /usr/share/X11/xkb/symbols, you can derive your own one and set that as layout (don't just edit the exisiting files in place, they'll be reset w/ the next update)
Last edited by seth (2025-03-09 08:15:03)
Offline
Many thanks Seth,
I will take care before execute the command.
I am really appreciate your support and prompt response.
Offline