Bug 137960

Summary: EDITING DOCX Shift + Left/Right arrow movement of shape makes its textframe fall out
Product: LibreOffice Reporter: NISZ LibreOffice Team <libreoffice>
Component: WriterAssignee: Dániel Arató (NISZ) <arato.daniel>
Status: VERIFIED FIXED    
Severity: normal CC: arato.daniel, bakos.attilakaroly, nemeth
Priority: medium Keywords: bibisectRequest, filter:docx, regression
Version: 7.1.0.0.alpha0+   
Hardware: All   
OS: All   
Whiteboard: target:7.1.0
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 122866    
Attachments: attachment #163631 after pressing Shift+Left thrice

Description NISZ LibreOffice Team 2020-11-03 14:33:38 UTC
Created attachment 166971 [details]
attachment #163631 [details] after pressing Shift+Left thrice

This is a followup to bug #135198
If the attachment #163631 [details] is opened in current Writer the shape with textframe can be moved around with the arrow keys just fine. 
However this provides a small movement, if the Shift key is also pressed and Left/Right arrow keys are used the textframe moves left and right, but the shape stays at the same place.

The fix to bug #135198 included disabling the Shift + Up/Down arrow keys moving the shapes textframe. This is specific to DOCX files, ODT is not affected.

It would be a better solution to make these work again, and to make Shift + 4 arrows to move the shape with the textframe, similar to how it works with only the 4 arrow keys.

Steps to reproduce:
    1. Open  attachment #163631 [details]
    2. Select the large shape
    3. Press Shift + Up/Down arrows. This has no effect.
    4. Press Shift + Left/Right arrows.

Actual results:
Shape moves in the document, but its textframe does not stay inside the shape.

Expected results:
Shape moves together with its textframe when Shift + 4 arrows are pressed.

LibreOffice details:
Version: 7.1.0.0.alpha1+ (x64)
Build ID: bd8edf5d2ac579e51bfbf5fa6061909a67a309c7
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL
Comment 1 Commit Notification 2020-11-12 15:21:16 UTC
Daniel Arato (NISZ) committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/768cfcee178b284be6d96d384364e59e40ecb375

tdf#137960 tdf#137964 sw: fix Shift-ArrowKey text box movement

It will be available in 7.1.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 2 NISZ LibreOffice Team 2020-12-30 10:37:27 UTC
Verified in:

Version: 7.2.0.0.alpha0+ (x64)
Build ID: 368c56144aab5794c39d5bc2082d9b3d6d7cebdb
CPU threads: 4; OS: Windows 10.0 Build 17134; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: threaded

Thanks for fixing!