Skip to content

Fix Shorcuts to match Photoshop CC Behaviour#163

Open
pierspad wants to merge 2 commits intoDiolinux:masterfrom
pierspad:fix-shortcuts-fidelity
Open

Fix Shorcuts to match Photoshop CC Behaviour#163
pierspad wants to merge 2 commits intoDiolinux:masterfrom
pierspad:fix-shortcuts-fidelity

Conversation

@pierspad
Copy link
Copy Markdown

Many of the shortcuts currently listed in shortcutsrc do not correspond to the shortcuts that are actually present in Photoshop.

I have updated some of the most used to better adhere to:
Adobe Photoshop CC Shortcuts Reference.
Photoshop Keyboard Shortcuts


Key Changes:

  • Layer Duplication (Ctrl+J): Remapped from image-duplicate (whole image) to layers-duplicate (active layer).

  • Free Transform (Ctrl+T): Mapped to tools-unified-transform instead of Scale. It enables also rotation, similar to Photoshop's Free Transform.

  • Fill (Alt+Del / Ctrl+Del): Swapped to correctly match Foreground vs Background fill colors logic.

  • Marquee Tools (M / Shift+M): Separated Rectangular and Elliptical selection.


I used a short Python script to clean up and sort the file into "Active" and "Inactive" sections to improve readability.
NOTE: GIMP will load shortcuts in memory and overwrite the wil upon exit. Hence this is intended solely for better maintenance.

import os
import shutil
p = os.path.join(os.path.dirname(__file__), "shortcutsrc") 
shutil.copy(p, p + ".bak")                                 
lines = open(p).readlines()                                
idx = next((i for i, x in enumerate(lines) if "(file-version" in x), -1) + 1 
active, inactive = [], []
for x in lines[idx:]:                                      
    if not x.strip(): continue                             
    (active if x.strip().startswith("(action") else inactive).append(x) 
open(p, "w").writelines(lines[:idx] + ["\n# ACTIVE\n"] + active + ["\n# INACTIVE\n"] + inactive)

Below is a screenshot of the changes in a more readable format.

  • On the left: the shortcutsrc file updated at commit ca9c6f2
  • On the right: my proposal
image

Note on deviations:

Some shortcuts differ intentionally from the PDF to accommodate GIMP's workflow:

e.g. (action “tools-bucket-fill” “<Shift>g”)

In Photoshop, both the Gradient Tool and Paint Bucket share the G shortcut, and users cycle through the stack using Shift+G.
Since GIMP handles tool cycling differently, I mapped:

  • G -> Gradient Tool
  • Shift+G -> Bucket Fill

If you agree with adhering to these shortcuts, I plan to submit further adjustments in future PRs. I'm open to feedback if further changes are needed.

@gabrielalmir gabrielalmir self-requested a review April 4, 2026 12:32
@gabrielalmir gabrielalmir added the enhancement New feature or request label Apr 4, 2026
@gabrielalmir
Copy link
Copy Markdown
Collaborator

PR #145 was merged and caused conflicts in shortcutsrc. Please rebase against master to resolve them. We are interested in your comprehensive updates once resolved. Thanks!

Copy link
Copy Markdown
Collaborator

@gabrielalmir gabrielalmir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marking as changes requested. Please rebase against the latest master branch to resolve the conflicts in shortcutsrc so we can proceed with the merge. Thanks!

@pierspad pierspad force-pushed the fix-shortcuts-fidelity branch from 09d2bc8 to 241fe08 Compare April 14, 2026 04:43
@pierspad
Copy link
Copy Markdown
Author

@gabrielalmir should be good to go

@gabrielalmir gabrielalmir dismissed their stale review April 15, 2026 15:56

Changes made

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants