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:20
Post: #3
RE: Keyboard Shortcut to Focus Image Window
(Apr 18, 2012 14:03)PaulSlocum Wrote:  Or is there a way to create a keyboard shortcut for either of these with script-fu?

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

As for the visibility of a layer: you can define a keyboard shortcut for Drawable Visible as layers are considered to be drawables.

Kevin
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: #4
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: #5
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:13
Post: #6
RE: Keyboard Shortcut to Focus Image Window
(Apr 18, 2012 14:46)PaulSlocum Wrote:  Where is the file that contains the keyboard shortcuts?

That would be your menurc file.

This thread should help you find it:
http://gimpforums.com/thread-what-is-my-...-i-find-it

Kevin
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: #7
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 18, 2012, 15:30
Post: #8
RE: Keyboard Shortcut to Focus Image Window
It does work, only not when the toolbox has the focus, only when another image window is active.
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: #9
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 19, 2012, 15:37
Post: #10
RE: Keyboard Shortcut to Focus Image Window
How about having the Images dockable dialog open, then double clicking on the entry sets the focus back to that window:

   

Kevin
Find all posts by this user
Quote this message in a reply
Apr 20, 2012, 13:41 (This post was last modified: Apr 20, 2012 13:42 by paynekj.)
Post: #11
RE: Keyboard Shortcut to Focus Image Window
(Apr 18, 2012 14:40)PaulSlocum Wrote:  
(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.

According to Wikipedia, the Alt-Tab equivalent on Mac-OSX is Cmd-Tab: http://en.wikipedia.org/wiki/Alt-Tab

Kevin
Find all posts by this user
Quote this message in a reply
Apr 20, 2012, 22:15
Post: #12
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: #13
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: #14
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
  Image Map - update existing image w/links Norkuvich 1 107 Sep 18, 2017 08:16
Last Post: paynekj
  How to remove shaky camera ghost image? ianpwilliams 4 1,417 Aug 12, 2017 13:47
Last Post: Elizabeeth
  How to extend an Image from side to side softening the hard edge of image Flesh 2 183 Jul 21, 2017 06:21
Last Post: Flesh
  Pressure sensitivity pen left click shortcut dogjake10 1 177 Jun 25, 2017 22:34
Last Post: ofnuts
  Image Quality Degradation Issue dedoubleu 2 242 Jun 7, 2017 06:37
Last Post: ythgilb

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS