GNOME Bugzilla – Bug 169257
"palette name" entry box is activated automatically when palette editor selected as a tab, grabbing key strokes.
Last modified: 2012-10-06 19:48:52 UTC
Distribution/Version: Debian -create a new image -open a layers/channel/paths dialog -open the palettes dialog -create a new palette called say "toast" and save it, but keep it's palette editor dialog open -add the palette editor for "toast" onto the layers/channel/paths dialog as a tab -select the layers tab -select the palette editor tab The "palette name" entry field will be magically activated and will grab your key strokes, and change the palette's name to your next keystroke. I don't know how many times I've changed my palette's name to 'x' because I've selected a color and tried to swap fore/back colours (not realizing the name field was active). The only way to deactivate the name is to save the palette. However, even then, if you switch to the layer(or any other) tab, and back again, the name field becomes once again active. I would expect the name field to only become active when specifically selected or that the name of the palette would be shown but not as an entry field (changing the name could be done through an option on the palette editors menu, or though a button beside the name that would open up a "palette name" entry dialog.)
Press Tab once to move keyboard focus out of the entry (as in any other dialog).
That works to deactivate the entry field, but I still don't think the field should be made active automatically when switching to the palette editor as a tab. If your drawing, then select the palette editor tab to select a color, it's not intuative that you would have to press tab before any of your keyboard shortcuts, like 'x' for swap colors, would work. What happens, more often than not, is that you select the color, press your key, and the name of your palette has been replace with the letter you pressed. Then you have to retype the name of your palette in.
Basically you can control this behaviour yourself. Try adding the line gtk-entry-select-on-focus = 0 to your ~/.gtkrc-2.0 file. But we should try to not depend on this user setting.
Doesn't address the actual problem, but at least allows restoring of the acidentially edited name: 2005-08-08 Michael Natterer <mitch@gimp.org> * app/widgets/gimpdataeditor.c: made hitting Escape in the name entry restore the data's original name. Enables undoing of accidential editing. Addresses bug #169257.
This doesn't happen any longer because now all docks have notebook tabs visible, which are the first widgets and get the focus. IIRC this was a 2.8 change.