PhotoDemon icon indicating copy to clipboard operation
PhotoDemon copied to clipboard

Tools > Keyboard shortcuts: some things still being worked on

Open tannerhelland opened this issue 1 year ago • 7 comments

  • [x] Toolbox hotkey editing

Right now, only menu shortcuts can be edited in the Tools > Keyboard shortcuts dialog. I am currently working on adding the ability to change toolbox hotkey too (e.g. "S" for rectangular and elliptical selections, "T" for text). These are tricky to handle because they do support duplicate hotkey usage, unlike menu hotkeys, so I've saved them for last.

  • [ ] Hotkeys for menus that are not persistent

Some non-persistent menus - like File > Open Recent entries, which only exist sometimes - have default hotkeys assigned (e.g. Ctrl+Shift+1 for the most-recent image file).

These are not currently editable in the Tools > Keyboard shortcuts dialog. I am working to add support for modifying these and/or reassigning their shortcuts elsewhere.


I will post other TODO items here as I encounter them, but these are the main remaining issues I'm focused on right now.

tannerhelland avatar Nov 07 '24 20:11 tannerhelland

I've changed a few shortcuts and it seems to work. I did notice a minor niggle, I have changed some font settings on my Win 11 system and as you can see the in the screenshot below the font is too large for the listbox/listview? control - you can still use it but perhaps there is an easy fix. PD

hi5 avatar Nov 15 '24 17:11 hi5

Thank you for the bug report, @hi5! I apologize for not testing this under high-DPI displays.

I've committed a fix and it should now be working in the latest nightly build. (I just tested 150% on a laptop and the hotkeys treeview looked OK.)

Thanks again 🙏

tannerhelland avatar Nov 20 '24 17:11 tannerhelland

So far so good, thanks for the fix, I saw that it was a lot of work ;)

hi5 avatar Nov 22 '24 18:11 hi5

Hello. The answer to the question: - https://github.com/tannerhelland/PhotoDemon/issues/637

  • To disable/enable letters in parentheses (hotkeys), in languages: Русский Македонски Українська (Ukrainian) Traditional_Chinese (繁體中文) Simplified_Chinese (简体中文(夜间更新版,2024.12)

action:

  • To disable/enable letters, press Ctrl+Shift and restart the Photo Demon program

vosska avatar Mar 25 '25 10:03 vosska

If possible, could you add the following "Actions" to the Keyboard shortcuts setup?

  1. Center Image inside the viewport
  2. Fit the image on-screen

These are the two small buttons on the status on the left/right side which may not always be visible if you don't have the statusbar "on" + they are rather small so not easy to "hit" with the mouse and "center image" is something I'd like assign to a shortcut.

Edit: again if possible, allowing to setup a shortcut for the "search" panel so you press that and start typing right away.

hi5 avatar Aug 28 '25 19:08 hi5

Thank you for the follow-up suggestions, @hi5 . Here's the current status of these items:

  1. Center image in viewport now appears as the 2nd item in the View menu. You can also modify its shortcut from the hotkey dialog. (In new installs, the hotkey defaults to Shift+J, same as GIMP.)
  2. Fit image on-screen hotkey should be available already in the hotkey dialog (top item in the "View" menu/section, defaults to Ctrl+0).
  3. Ctrl+F is the default hotkey for the search panel, and should already be available in the hotkey dialog under the Toolbox tools section. (Specifically, it appears below Gradient tool and above Decrease brush size.) If for some reason your custom shortcut does not allow you to start typing a search query after using the shortcut, let me know as that's unexpected behavior and I want to fix it.

I apologize that some of these items are hard to find.

tannerhelland avatar Sep 10 '25 15:09 tannerhelland

Thank you for the follow-up suggestions, @hi5 . Here's the current status of these items:

Thanks! Can't believe I missed Ctrl+F 🤦‍♂️

hi5 avatar Sep 10 '25 16:09 hi5