Bug 95417 - Reassign paragraph/list item reordering keyboard shortcuts to Alt+Up/Down
Summary: Reassign paragraph/list item reordering keyboard shortcuts to Alt+Up/Down
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All Linux (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks: Shortcuts-Accelerators
  Show dependency treegraph
 
Reported: 2015-10-29 16:31 UTC by Jean-François Fortin Tam
Modified: 2019-06-07 21:01 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-François Fortin Tam 2015-10-29 16:31:33 UTC
There is a feature where you can reorder paragraphs and list items using the keyboard. It's very nice to be able to quickly change the ordering like that, especially for journalists (where a golden rule is that every paragraph should be an atomic item that can be moved mostly anywhere in the text) and for brainstorming.

The problem is that the keyboard shortcuts (Ctrl+Up and Ctrl+Down) for that feature changed in one of the releases over the past few years (I have no idea which).

- Currently, ctrl+up/down does nothing special, it just goes up or down one line (as if you didn't have ctrl pressed at all).

- The shortcut now seems to be ctrl+alt+up/down (at least for list items, not sure if it's the same for paragraphs but I presume so). The problem is that this conflicts with window managers' global shortcuts for virtual workspaces in Linux. Most notably, hitting those shortcuts in GNOME Shell will make it switch to the next/previous workspace, overriding LibreOffice.

I can't think of something wrong with the previous shortcuts (ctrl+up/down) so I would suggest putting those back in place?
Comment 1 Cor Nouws 2015-10-29 20:01:50 UTC
Hi Jean-Fraincois

Thanks for reporting. I recognize your problem.

The change you mention was made a looong time ago in OpenOffice.org 2.x or 3.x early... :)

Cltr+up/down moves to start previous / next paragraph. Seems to be common in more programs.
But indeed, Ctrl+Alt+up/down does not work for me either.
Maybe another one?
Or (another) option ?

By the way; Tools > Customize allows you to change the setting..
So maybe a WorksForMe would be fine for this issue too?

Cheers - Cor
Comment 2 Jean-François Fortin Tam 2015-10-30 20:01:31 UTC
Perhaps I can suggest Alt+Up/Down as the default then? It's not assigned to anything in LibreOffice Writer and it does not conflict with window managers like GNOME Shell/Mutter. Whatsmore, Alt+Up/Down would be consistent with Gedit (the GNOME text editor) when it comes to this feature.
Comment 3 Cor Nouws 2015-11-01 19:40:08 UTC
Looks fine to me.
Alt+Arrow does do something with selected objects, but not in plain text.

Comments from people on other OS-es?
Comment 4 V Stuart Foote 2015-11-01 21:33:52 UTC
On Windows 10 Pro 64-bit en-US with
Version: 5.0.3.1 (x64)
Build ID: fd8cfc22f7f58033351fcb8a83b92acbadb0749e
Locale: en-US (en_US)

<Ctrl>+<Alt>+<DOWN> or <UP> are defined and show in the Tools -> Customize: Keyboard tab as assigned for Writer--they are not assigned globally.  So they can already be reassigned if needed when conflicting with OS or DE assignments.
 
I just verified they do work correctly for Windows installs. Where in Writer, make a list as individual paragraphs, then select just one...

<Ctrl>+<Alt>+<UP> does move the item up, <Ctrl>+<Alt>+<DOWN> moves the item down the list.

Paragraphs with line breaks, and wrapped multiline paragraphs also move when selected.  As do multiple selected paragraphs.  So is all is correct in LO.

(In reply to Jean-François Fortin Tam from comment #0)

> I can't think of something wrong with the previous shortcuts (ctrl+up/down)
> so I would suggest putting those back in place?

As to changing the keyboard shortcut--IMHO the "three" key assignment to be appropriate--as a two key <Alt>+<DOWN>/<UP> or <Ctrl>+<DOWN>/<UP> while available, would cause inadvertent movement of selected text/paragraphs set with <Shit>+<DOWN>/<UP> block selection.

Better to retain the positive control of a "three" key combo.

=-=-=

The <Ctrl>+<Alt>+<DOWN>/<UP> movement of selection has been that way forever.

I've added a musty old issue from OOo days --April 2007-- to the see also, dealt with the <Shift>+<Down>/<UP> selection and affect on style of the selected paragrapah when moving with <Ctrl>+<Alt>+<DOWN>/<UP> -- one of yours Cor :-)

=-=-=

As an aside, I don't believe there is a keyboard accelerator or UNO keyboard action to call the Sort dialog, to apply to a list of single entry paragraphs as selected, but I don't think that is the issue being discussed.
Comment 5 Cor Nouws 2019-06-07 07:09:41 UTC
(In reply to V Stuart Foote from comment #4)
> (In reply to Jean-François Fortin Tam from comment #0)
> 
> > I can't think of something wrong with the previous shortcuts (ctrl+up/down)
> > so I would suggest putting those back in place?
> 
> As to changing the keyboard shortcut--IMHO the "three" key assignment to be
> appropriate--as a two key <Alt>+<DOWN>/<UP> or <Ctrl>+<DOWN>/<UP> while
> available, would cause inadvertent movement of selected text/paragraphs set
> with <Shit>+<DOWN>/<UP> block selection.
> 
> Better to retain the positive control of a "three" key combo.
> 
> =-=-=
Sounds wise.
But leaves us with the current conflict of using <ctrl><alt><up/down> in Writer and the installed window manager..
Comment 6 Heiko Tietze 2019-06-07 21:01:27 UTC Comment hidden (off-topic)