Bug 128426 - Swapping two commands' keyboard shortcuts is not easy
Summary: Swapping two commands' keyboard shortcuts is not easy
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.4.7.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Customize-Dialog-Keyboard
  Show dependency treegraph
 
Reported: 2019-10-28 10:19 UTC by Ming Hua
Modified: 2024-06-09 07:46 UTC (History)
3 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 Ming Hua 2019-10-28 10:19:42 UTC
Description:
I was trying to swap the keyboard shortcuts of two commands with the Tools -> Customize... dialog, but could never get it right on my first try.  I had to do it several times to do a simple swapping.  It doesn't seem possible to do it without closing the dialog (therefore saving an intermediate state) and opening it for more changes.

Steps to Reproduce:
These steps use swapping Navigator (F5) and Sidebar (Ctrl+F5) as an example:
1. With a fresh installation, open Tools -> Customize... dialog;
2. Choose "View" in the Category column, then choose "Sidebar" in the Function column, the Keys window displays "Ctrl+F5";
3. Click "Delete" button, the Keys window is empty now;
4. Choose "Navigate" in the Category column, then choose "Navigator" in the Function column, the Keys window displays "F5";
5. Click "Delete" button, the Keys window is empty;
6. Choose "Ctrl+F5" in the "Shortcut Keys" window above, click "Modify" button, the Keys window now displays "Ctrl+F5";
7. Choose "F5" in the "Shortcut Keys" window, then choose "View" in the Category column and "Sidebar" in the Function column, and finally click "Modify" button, the Keys window displays "F5";
8. Maybe check the View-Sidebar and Navigate-Navigator entries again, to see that they are assigned "F5" and "Ctrl+F5" as desired;
9. Click "OK" button to close dialog;
10. Test keyboard shortcuts by pressing "F5" and "Ctrl+F5".

Actual Results:
Both F5 and Ctrl+F5 opened the Navigator.  I opened Tools -> Customize... dialog and checked again, surprisingly both F5 and Ctrl+F5 were assigned to Navigate-Navigator, and View-Sidebar was empty.

After deleteing F5 from Navigator and assigning F5 to Sidebar, I clicked OK and closed the dialog, this time they worked as desired.

Expected Results:
After one set of operations in the customize dialog, F5 should open Sidebar and Ctrl+F5 should open Navigator.  No double-back operations should be needed.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 6.1.6.3 (x64)
Build ID: 5896ab1714085361c45cf540f76f60673dd96a72
CPU threads: 2; OS: Windows 10.0; UI render: GL; 
Locale: zh-CN (zh_CN); Calc: group threaded

6.1.6 release is the oldest version I tried, I could also reproduce on 6.2.8, 6.3.3 rc1, and 6.4.0 alpha1 versions, all Windows 64-bit systems.

The F5 and Ctrl+F5 shortcuts are just an example, I could also reproduce when trying to swap Ctrl+Shift+V (Paste Special) and Ctrl+Shift+Alt+V (Paste Unformatted Text).
Comment 1 Ming Hua 2019-10-29 09:39:19 UTC
I'd like to add that I could reproduce this bug in either Writer or Calc, so I chose "LibreOffice" component.

Also after swapping the shortcuts, even if they work as desired, the display of them in the menu doesn't seem right (both Sidebar and Navigator would have "F5" as keyboard shortcut), it's likely related, so I'll refrain from filing a second bug yet.
Comment 2 Xisco Faulí 2019-12-11 13:31:10 UTC
Could you please try to reproduce it with the latest version of LibreOffice
from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the latest version.
Comment 3 Ming Hua 2019-12-14 05:44:58 UTC
(In reply to Xisco Faulí from comment #2)
> Could you please try to reproduce it with the latest version of LibreOffice
> from https://www.libreoffice.org/download/libreoffice-fresh/ ?
Yes, reproducible in 6.3.4

版本: 6.3.4.2 (x64)
Build ID: 60da17e045e08f1793c57c00ba83cdfce946d0aa
CPU 线程: 2; 操作系统: Windows 10.0; UI 渲染: GL; VCL: win; 
区域语言: zh-CN (zh_CN); UI 语言: zh-CN
Calc: threaded

as well as 6.4.0 Beta1

Version: 6.4.0.0.beta1 (x64)
Build ID: 4d7e5b0c40ed843384704eca3ce21981d4e98920
CPU threads: 2; OS: Windows 10.0 Build 18363; UI render: default; VCL: win; 
Locale: zh-CN (zh_CN); UI-Language: en-US
Calc: threaded
Comment 4 Buovjaga 2020-05-01 17:47:05 UTC
Repro with steps.

In 4.4.7 Sidebar did not yet have a shortcut assigned, so I assigned it first, OK and then went through the steps - repro as well.

Arch Linux 64-bit
Version: 7.0.0.0.alpha0+
Build ID: 23ddc3811d4d1890e4024f4e0f6bb5129a694fdc
CPU threads: 8; OS: Linux 5.6; UI render: default; VCL: kf5; 
Locale: fi-FI (fi_FI.UTF-8); UI-Language: en-US
Calc: threaded
Built on 30 April 2020
Comment 5 QA Administrators 2022-05-02 03:36:37 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2024-05-02 03:15:11 UTC Comment hidden (obsolete)
Comment 7 Ming Hua 2024-06-09 07:46:09 UTC
Still reproducible with 24.8 alpha on Windows 11:

Version: 24.8.0.0.alpha1 (X86_64) / LibreOffice Community
Build ID: a17e39caaf73108bee692d6f64a44c62f4066f1d
CPU threads: 12; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Vulkan; VCL: win
Locale: zh-CN (zh_CN); UI: zh-CN
Calc: CL threaded