[PATCH] Re: CTRL+Key_Plus and CTRL+Key_Minus as zoom

Simon Perreault nomis80 at nomis80.org
Fri Jan 2 04:15:43 GMT 2004


On January 1, 2004 14:33, Leo Savernik wrote:
> How about adding them in the *.rc files?

Dammit, I spent a few hours on this and I can't get it right. I'm not very 
experienced in XML GUI. I tried searching for a few examples of setting 
default shortcuts in XML:

[nomis80 at localhost kde]$ grep shortcut `find . -name '*.rc'`
./kdebase/konqueror/konqueror.rc:  <Action shortcut="F9" 
name="konq_sidebartng" />
./kdelibs/khtml/khtml_browser.rc: <Action shortcut="F7" name="caretMode" />
./kdepim/knode/knodeui.rc:    <Action name="knode_configure_shortcuts" />

As you can see, this is not widely used. The only example of Ctrl+something is 
your own line that I'm changing:

<Action shortcut="Ctrl+KP_Add" name="incZoomFast" />

I first tried only changing the name to incFontSizes, but this doesn't work at 
all. The default key is still "None". Anyway, I read the code many times, and 
there is no way that the default shortcut can be set without passing it to 
the constructor. And maybe it is a bad design.

> If this doesn't help we could resort to Ctrl+Keypad Plus as a secondary
> shortcut.

I've searched and searched and searched for a way to do this, and couldn't 
find any way to do this.

-- 
Simon Perreault <nomis80 at nomis80.org> -- http://nomis80.org





More information about the kfm-devel mailing list