Bug 169812 - Custom shortcut for .uno:Color should set last color not open dialog
Summary: Custom shortcut for .uno:Color should set last color not open dialog
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
25.8.2.2 release
Hardware: All All
: medium enhancement
Assignee: Heiko Tietze
URL:
Whiteboard: target:26.8.0 target:26.2.0.2 inRelea...
Keywords:
Depends on:
Blocks: Shortcuts-Accelerators
  Show dependency treegraph
 
Reported: 2025-12-03 16:42 UTC by questions2000
Modified: 2026-01-16 10:19 UTC (History)
2 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 questions2000 2025-12-03 16:42:56 UTC
Description:
If you assign `Font Color` function to a shortcut key and try to apply this shortcut key to a cell with existing font to change its color, it does not change the color, it instead opens `Format Cells` dialog with focus in the `Font` tab.

Steps to Reproduce:
1. Open new spreadsheet

2. Open `Customize` dialog
3. Select the `Keyboard` tab
3. Assign `Font Color` function to a shortcut key
4. Close dialog

4. In spreadsheet type text in a cell using default black/white font color.
5. Now click on a blank cell before going any further

6. Open toolbar `Font Color` drop down
7. Select color red

TEST A = WORKS AS EXPECTED
8. Now select the cell you typed in
9. Hit the `Font Color` icon in toolbar
10. Should see that font color go from black/white to red

TEST B = ISSUE
8. Now select the cell you typed in
9. Hit shortcut key you assigned to `Font Color` function
10. You will notice that font color does not apply, instead it opens up `Format Cells` dialog with focus in the `Font` tab

Actual Results:
`Font Color` shortcut opens up `Format Cells` dialog with focus in the `Font` tab, instead of just applying the font color to selected cells text.

Expected Results:
To have `Font Color` shortcut just apply the current color being displayed by the `Font Color` toolbar icon.


Reproducible: Always


User Profile Reset: No

Additional Info:
VERSIONS TESTED
24.8.4.2 deb installed version
and 
Official LibreOffice-fresh.basic-x86_64.AppImage
Version: 25.8.2.2 (X86_64)

SOMEWHAT RELATED ISSUE
I had originally found a similar issue with `Background Color` function and made a post about it, but was told that it was a duplicate of this post issue, so I commented on this post found here
https://bugs.documentfoundation.org/show_bug.cgi?id=138722

Hope all of this helps
Comment 1 jcline 2025-12-10 04:29:24 UTC
reproduced in Version: 25.8.3.2 (X86_64)
Build ID: 8ca8d55c161d602844f5428fa4b58097424e324e
CPU threads: 32; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

and Version: 26.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 680(Build:0)
CPU threads: 32; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 2 Buovjaga 2025-12-23 17:52:23 UTC
Heiko: seeing your work in bug 138722 you might be interested in this one that is about .uno:Color
Comment 3 Commit Notification 2026-01-06 06:43:13 UTC
Heiko Tietze committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/751c78a2ea3cbc34223977b1c51661b51a564e5f

Resolves tdf#169812 - Apply last used color for uno:Color

It will be available in 26.8.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 4 Commit Notification 2026-01-07 07:56:03 UTC
Heiko Tietze committed a patch related to this issue.
It has been pushed to "libreoffice-26-2":

https://git.libreoffice.org/core/commit/1e045b03f67f85c2ab49d7c69a88b9953f8e27f0

Resolves tdf#169812 - Apply last used color for uno:Color

It will be available in 26.2.0.2.

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.