Bug 138153 - Use keyboard to switch between foreground and background color
Summary: Use keyboard to switch between foreground and background color
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-30 14:14 UTC by Thomas Zander
Modified: 2009-11-09 17:11 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch for implementing this wish (2.97 KB, patch)
2009-11-08 11:13 UTC, Halla Rempt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Zander 2006-11-30 14:14:14 UTC
Version:           1.6.1 (using KDE 3.5.5, Kubuntu (edgy) 4:3.5.5-0ubuntu3)
Compiler:          Target: x86_64-linux-gnu
OS:                Linux (x86_64) release 2.6.15-26-amd64-generic

The way to switch between fg/bg colors is to click on the arrows next to the widget that shows both these colors.
A second way is to middle-click anywhere on the widget (but double middle click unfortunately opens the color dialog).

My wish is that an action is added that allows me to switch between fg/bg using a key.  I would suggest the 'x' key for that :)
Comment 1 Cyrille Berger 2006-11-30 16:37:35 UTC
you can also middle-click on the canvas (it works only with the pen tool, it needs to be "spread" in krita 2.0)
Comment 2 Alan Horkan 2007-01-23 13:35:01 UTC
> I would suggest the 'x' key for that :)

this is a particularly good as idea as many people are already familiar with this behaviour from Adobe Photoshop and the GNU Image Manipulation Program.  

X to swap foreground and background
D to reset to black and white
Comment 3 Halla Rempt 2009-11-08 11:13:34 UTC
Created attachment 38175 [details]
patch for implementing this wish

Patch is up for review on the kimageshop mailing list.
Comment 4 Halla Rempt 2009-11-09 17:11:29 UTC
SVN commit 1046753 by rempt:

Implement wish 138153: Use keyboard to switch between foreground and background color

Add two actions to KisTool, with the default shortcuts
as proposed by Alan Horkan to swap the fg and bg color
and to reset them.

BUG:138153

 M  +32 -0     kis_tool.cc  
 M  +4 -0      kis_tool.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1046753