Mac OS X OK Button Key Command?
John Ralls
jralls at ceridwen.us
Fri May 13 22:55:43 EDT 2016
> On May 13, 2016, at 3:48 PM, David Lewis <reelmusicboston at yahoo.com> wrote:
>
> Hey John, thanks for the reply. Is the xml file directly editable? (If so, where is it?). I looked through the accelerator-map file, but no luck. Control-tab works, but requires a bunch of tabs to get there.
>
>
>
>> On May 13, 2016, at 4:20 PM, John Ralls <jralls at ceridwen.us> wrote:
>>
>>
>>> On May 13, 2016, at 1:04 PM, David Lewis <reelmusicboston at yahoo.com> wrote:
>>>
>>> I’ve looked everywhere, is there a way to make a key commend to hit the OK button in dialog boxes in OS X?
>>
>> I don't think there's a user-accessible setting for that. It can (and in general should) be set up as the behavior of the return key, but it needs to be done explicitly for each dialog in either the GrkBuilder xml file or in the controlling code. If it isn't you should still be able to tab to the OK button and press return.
Yes, the GtkBuilder XML files are directly editable. They're in Gnucash.app/Contents/Resources/share/gnucash/gtkbuilder/ (where they'll have extension 'glade') and Gnucash.app/Contents/Resources/share/gnucash/ui (where the extension will be 'xml').
You can study the GtkBuilder docs at https://developer.gnome.org/gtk2/2.24/GtkBuilder.html for what the format looks like. http://stackoverflow.com/questions/1705411/can-you-set-the-defaultresponse-for-a-gtk-dialog-in-glade explains how to do what you want in the builder file. You'll need to do it for each dialog box.
Regards,
John Ralls
More information about the gnucash-user
mailing list