[GNC] Binding F11 to Copy and F12 to Paste in GnuCash 3.0 (GTK3)

Chris Good goodchris96 at gmail.com
Mon May 14 22:34:38 EDT 2018


Hi,

 

If you wish to map (bind) function keys to Copy and Paste in GnuCash 3.0 it
is different to GnuCash 2.6 and lower because GnuCash 2.6 and lower use GTK2
and GnuCash (2.7 I think and 3.0+) use GTK3.

 

Here is how I did it in Windows 10:

 

Close GnuCash if already running.

Create (or modify if already exists) %APPDATA%\GnuCash\gtk-3.0.css

E.g. C:\Users\%USERNAME%\AppData\GnuCash\gtk-3.0.css

 

Add the following lines:

 

/* Bind F11 to Copy, F12 to Paste */

@binding-set F11CopyF12Paste

{

  bind "F11" { "copy-clipboard" () };

  bind "F12" { "paste-clipboard" () };

}

 

entry

{

  -gtk-key-bindings: F11CopyF12Paste;

}

 

Control-C and Control-V also still work as that binding still exists.

 

I seem to remember it is not possible to change the Accounts tab to have
alternating colours for each line in GTK3.

Is that correct or does anyone have information on how to do that?

 

Regards, Chris Good

 



More information about the gnucash-user mailing list