'Emacs style' delete line shortcut (CTRL/U) doesn't work correctly in Firefox

Liam Proven lproven at gmail.com
Wed Oct 10 09:35:41 UTC 2018


On Wed, 10 Oct 2018 at 11:14, Chris Green <cl at isbd.net> wrote:
>
> I have the 'Emacs style' keyboard shortcuts enabled on my [x]ubuntu
> 18.04 systems.  The shortcut I use most often is the (not really
> Emacs) CTRL/U for deleting a line of text.
>
> This should delete the whole line of text even if the cursor isn't
> placed at the end of the line.  It *does* do this in other GUIs but in
> Firefox it just deletes from the cursor to the start of the line.
> This makes the shortcut much less useful as it means I need to move
> the cursor to delete the line

That does not follow. Just press END first.

> and this means I have to use the touchpad
> or mouse.

Huh? No you don't.

>  The whole point (for me) of CTRL/U is that I don't need to
> leave the keyboard to enter a new line.

But you don't.

> I'm fairly sure this *used* to work in Firefox.  Is it therefore a bug
> I can report? .... or is there a workaround, i.e. a simple, keyboard
> only, 'delete line' shortcut?

The CUA way is:

Home, Shift-End, Del

or

End, Shift-Home, Del

or

Ctrl-A, Del

There are probably others.

That should work on all GUIs since the late 1980s: classic MacOS, Mac
OS X, all versions of Windows, all Windows-like Unix desktops, etc.

-- 
Liam Proven - Profile: https://about.me/liamproven
Email: lproven at cix.co.uk - Google Mail/Hangouts/Plus: lproven at gmail.com
Twitter/Facebook/Flickr: lproven - Skype/LinkedIn: liamproven
UK: +44 7939-087884 - ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053




More information about the ubuntu-users mailing list