Linux browser text editing control keys

23 views
Skip to first unread message

Curt Lundgren

unread,
Feb 1, 2021, 4:36:28 PM2/1/21
to NLUG
Hi all, I've been setting up a Linux computer with dual monitors as a secondary, perhaps backup to my main iMac computer.  On the Mac, using Chrome (and perhaps Firefox and Safari) when I'm in a text field, the editing control keys work properly.  Ctrl-A, left margin.  Ctrl-E, end of line.  Ctrl-B, Ctrl F are non-destructive cursor left and right moves.  Other control keys work as expected, including Ctrl-T for character transposition.

These keys work on the command line and in various editors, I use Emacs (no flame wars, please!)

I'm liking the Raspberry Pi 400, at 1.8 GHz it's suitably faster than the Pi 4's 1.5 GHz.  Just enough to (mostly) run YouTube at 30 FPS and 1080P resolution.  Totally silent and doesn't run hot, very nice design.  It would be nicer if it had an audio output jack…

Ah, but then bring up a browser.  I have both Firefox and Chromium installed and they've gone over to what I call the Bill Gates system.  Ctrl-A selects all text, Ctrl-B probably makes selected text bold - the same as in a Microsoft OS.

I originally brought up Ubuntu for the Pi, loved the features, but then ran into the control key issues in the browser.  OK, I have another micro SD card; I'll load up the RasPi OS.  Sadly, it's the same with both OSes on the Pi.  The traditional Unix/Linux control keys work properly in terminal and xterm, but not in the browser.  I do a lot of filling out of web forms, and really want the proper behavior with control keys (at least, proper as perceived by me…)

Searching has not revealed a way to revert control keys to their normal behavior in either browser, and maybe it's just my search-fu, but looking on Google and DuckDuckGo has not revealed the answer.

I really like the general look and feel of Ubuntu for the Pi, and performance isn't bad.  Is there a browser I can use that has the control keys set up in Unix/Linux format, or is there perhaps a plugin that will 'fix' the issue in one of the major browsers?

Thanks all
Curt Lundgren

Paul Boniol

unread,
Feb 2, 2021, 3:10:11 AM2/2/21
to NLUG
Immediate search results imply you should right-click. I know it isn't getting Ctrl-C / Ctrl-V to work, but all I could find.

Paul

--
--
You received this message because you are subscribed to the Google Groups "NLUG" group.
To post to this group, send email to nlug...@googlegroups.com
To unsubscribe from this group, send email to nlug-talk+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/nlug-talk?hl=en

---
You received this message because you are subscribed to the Google Groups "NLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nlug-talk+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nlug-talk/CADPPtroSJLv77YNfFdaXVXMs_QWff2eV1kENT3vQdh%2BS9GYh1g%40mail.gmail.com.

Curt Lundgren

unread,
Feb 4, 2021, 9:42:29 PM2/4/21
to NLUG
Thanks Paul, it seems that every browser available for Linux is the same, where control keys are concerned.  So sad.

Bucky Wolfe

unread,
Feb 4, 2021, 10:17:14 PM2/4/21
to nlug...@googlegroups.com
You can definitely get some keyboard-driven-ness back into your browser. The least complicated way would be to install Vimium for ff or chrome, but there are also full blown browser forks like luakit and qutebrowser, the latter of which will just let you open a multiline text field in vim if you so desire:  https://qutebrowser.org/doc/help/settings.html#editor.command

Bucky Wolfe

unread,
Feb 4, 2021, 10:28:09 PM2/4/21
to nlug...@googlegroups.com
I might've misinterpreted. If you just want emacs bindings in gtk, change your gtk key theme: https://askubuntu.com/questions/124815/how-do-i-enable-emacs-keybindings-in-apps-such-as-google-chrome

Curt Lundgren

unread,
Feb 4, 2021, 10:47:52 PM2/4/21
to NLUG
Thanks Bucky, I'll check that out immediately.

Curt Lundgren

unread,
Feb 4, 2021, 11:58:59 PM2/4/21
to NLUG
Success!  The command that did it for Chromium was

gsettings set org.gnome.desktop.interface gtk-key-theme "Emacs"

I really appreciate the tip!
Reply all
Reply to author
Forward
0 new messages