Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Keyboard key combination only works on google chrome pt-br
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
antoniovalos
n00b
n00b


Joined: 24 Mar 2023
Posts: 28

PostPosted: Sat Jan 06, 2024 6:43 am    Post subject: Keyboard key combination only works on google chrome pt-br Reply with quote

I configured my keyboard to Brazilian Portuguese on KDE plasma, but the keys combination only works on chrome navigator, outside the navigator, all keys combination to type the accents live â, â, á... does not work. How to solve that?
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2038
Location: United Kingdom

PostPosted: Sun Jan 07, 2024 6:05 pm    Post subject: Reply with quote

When you write "configured my keyboard to Brazilian Portuguese on KDE plasma", do you mean you used 'System Settings' > 'Regional Settings' and 'System Settings' > 'Input devices' > 'Keyboard' | 'Layouts'?

Check the contents of the file ~/.config/plasma-localerc to see if the LANG variable is set to the desired locale. For example:

Code:
$ cat ~/.config/plasma-localerc
[Formats]
LANG=pt_BR.UTF-8


If it is not, you can edit the file and set the desired locale. Alternatively, delete that file then logout and login again to make KDE Plasma pick up the values of the variables from the existing configuration. KDE Plasma will recreate the file.

Optionally you could edit that file to add other desired settings. For example:

Code:
[Formats]
LANG=pt_BR.UTF-8
LC_CTYPE=pt_BR.UTF-8
LC_NUMERIC=pt_BR.UTF-8
LC_TIME=pt_BR.UTF-8
LC_COLLATE=pt_BR.UTF-8
LC_MONETARY=pt_BR.UTF-8
LC_MESSAGES=pt_BR.UTF-8
LC_PAPER=pt_BR.UTF-8
LC_NAME=pt_BR.UTF-8
LC_ADDRESS=pt_BR.UTF-8
LC_TELEPHONE=pt_BR.UTF-8
LC_MEASUREMENT=pt_BR.UTF-8
LC_IDENTIFICATION=pt_BR.UTF-8
useDetailed=true


Also, please provide some more information about your Gentoo Linux installation. Is it using X Windows or Wayland? Is it using OpenRC or systemd? Which locale/locales is/are configured? For example, as I use British English, American English, Brazilian Portuguese and Spanish, I have the following configured:

Code:
fitzcarraldo@clevow230ss ~ $  locale -a
C
C.utf8
POSIX
en_GB
en_GB.iso88591
en_GB.utf8
es_ES
es_ES.iso88591
es_ES.utf8
pt_BR
pt_BR.iso88591
pt_BR.utf8


and, as I use British English, US English, Brazilian Portuguese and Spanish keyboards, I have configured X Windows to allow me to switch between keyboards by using Alt-Shift or clicking on the Keyboard Layout icon on the KDE System Tray on the KDE Panel:

Code:
fitzcarraldo@clevow230ss ~ $ cat /etc/X11/xorg.conf.d/30-keyboard.conf
Section "InputClass"
    Identifier "keyboard"
    # See /usr/share/X11/xkb/rules/base.lst for Options.
    MatchIsKeyboard "yes"
    Option "XkbLayout" "gb,us,br,es"
    Option "XkbModel" "pc105"
    Option "XkbVariant" "extd,altgr-intl,,"
    Option "XkbOptions" "grp:alt_shift_toggle,compose:paus"
EndSection


The following article might also be of help to you in setting up the Brazilian Portuguese keyboard:

https://fitzcarraldoblog.wordpress.com/2021/03/23/notes-on-keyboard-configuration-in-x-windows-keyboard-layout-modifier-key-and-compose-key/
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC systemd-utils[udev] elogind KDE on both.

My blog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum