Post Reply 

Keyboard Shortcut to Focus Image Window

Apr 15, 2012, 21:58 (This post was last modified: Apr 15, 2012 21:58 by PaulSlocum.)
Post: #1
Keyboard Shortcut to Focus Image Window
Is there any way to create a keyboard shortcut to put focus on the image window? I see how to create shortcuts to select every window except the image window, and it if I could just select the image window with a keyboard shortcut, GIMP would be much easier for me to use.

Also is there a way to create a keyboard shortcut to toggle the visibility of a layer?
Find all posts by this user
Quote this message in a reply
Apr 18, 2012, 14:03
Post: #2
RE: Keyboard Shortcut to Focus Image Window
Or is there a way to create a keyboard shortcut for either of these with script-fu?
Find all posts by this user
Quote this message in a reply
Apr 18, 2012, 14:40 (This post was last modified: Apr 18, 2012 14:41 by PaulSlocum.)
Post: #3
RE: Keyboard Shortcut to Focus Image Window
(Apr 18, 2012 14:20)paynekj Wrote:  script-fu has no way of knowing which is the "active" image window, so I think you'll have to resort to using whatever your operating system/window manager uses as a keyboard shortcut to select a specific window: i.e. Alt-Tab on M$ Windows

I'm on Mac, I'm not sure there is a keyboard shortcut for X11 windows. Can Script-Fu select a specific open image window like the first one or the third? If it can do that I could just create shortcuts for each window.
Find all posts by this user
Quote this message in a reply
Apr 18, 2012, 14:46 (This post was last modified: Apr 18, 2012 14:52 by PaulSlocum.)
Post: #4
RE: Keyboard Shortcut to Focus Image Window
Actually there seems to be a bug in the keyboard shortcut assigning. If I try to assign a key to one of the image windows (windows-display-00001) in "Keyboard Shortcuts", it just disappears and then won't let me assign that key to anything else.

Where is the file that contains the keyboard shortcuts?
Find all posts by this user
Quote this message in a reply
Apr 18, 2012, 15:15 (This post was last modified: Apr 18, 2012 15:27 by PaulSlocum.)
Post: #5
RE: Keyboard Shortcut to Focus Image Window
I found it and I can assign keys to select the image windows, but it just doesn't work. When I open the "Windows" pull-down menu that shows all the open windows, I can even see my keyboard shortcuts listed in the menu, but pressing the keys doesn't do anything. I guess this is a bug. It doesn't seem possible to do with script-fu either.

Hope this is fixed in the new version! Wink
Find all posts by this user
Quote this message in a reply
Apr 19, 2012, 14:27 (This post was last modified: Apr 19, 2012 14:32 by PaulSlocum.)
Post: #6
RE: Keyboard Shortcut to Focus Image Window
(Apr 18, 2012 15:30)paynekj Wrote:  It does work, only not when the toolbox has the focus, only when another image window is active.

You're right, but that makes it useless for me.

To me it's a huge problem that the only way to return focus to the image window is by clicking on it. If you have a tool like the paintbrush active and click within your image, it will draw. So to return focus to the image window, you have to carefully click on the title bar to avoid drawing on your image. This really slows down my workflow.
Find all posts by this user
Quote this message in a reply
Apr 20, 2012, 22:15
Post: #7
RE: Keyboard Shortcut to Focus Image Window
Command-tab switches applications. I tried tab with all the modifier keys. Using the Images window doesn't really help.
Find all posts by this user
Quote this message in a reply
Apr 21, 2012, 19:50 (This post was last modified: Apr 22, 2012 01:13 by PaulSlocum.)
Post: #8
RE: Keyboard Shortcut to Focus Image Window
What's really helping the most is reassigning all the keyboard shortcuts so that I rarely have to click in the layers window. Since Paynekj gave me the shortcut for toggling layer visibility, I've been able to cover most of my frequently-used layer commands with shortcuts. Every time I notice myself having to click in another window to do something, I assign that function to a keyboard shortcut.
Find all posts by this user
Quote this message in a reply
Jan 19, 2013, 01:47
Post: #9
RE: Keyboard Shortcut to Focus Image Window
More shortcuts is just too much to remember. I already have too many.

Here was my solution:
Detach the layers tab from the dock and make that window "Always on top". (I placed mine directly over the old one with the eaxct same dimension.) Then you can add your other tabs to the new detached dock to reflect what you had in the main window. Save the window layout in preferences, and you're good to go.

Of course the down side is an always on top window on your desktop, but at least it's small and easy enough to minimize when you need to. I feel it's the lesser evil than learning even more shortcuts.

I think single window mode is a misnomer as it still considers them 2 separate windows withing a single space. I would be happy if they just made the multi window mode incorporate tabs for the canvas window. Then all would be as it was, only better,
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Export to PDF spoils image rdh61 1 278 Jan 30, 2018 13:05
Last Post: paynekj
  [Solved] - Slicing the entire image in 64x64 kholyphoenix1 1 87 Jan 7, 2018 16:46
Last Post: kholyphoenix1
  Scaling (reducing) image with fonts rubinho 2 166 Dec 17, 2017 17:17
Last Post: rubinho
  Image Map - update existing image w/links Norkuvich 1 275 Sep 18, 2017 08:16
Last Post: paynekj
  How to remove shaky camera ghost image? ianpwilliams 3 1,788 Aug 12, 2017 13:47
Last Post: Elizabeeth

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS