Thanks Christoph. It seems all lines had that “;” at the beginning, even the commonly used cut/copy/paste, so it didn’t occur to me that these were commented lines.
I removed the “;” at the beginning of the said entires and it works just fine. One peculiar observation though. I used <Primary> as a tag on some shortcuts while tagging the others with <Meta>. I was expecting the <Primary> ones to invoked by using <command>+key and the <Meta> ones to be invoked by using <Alt>+key. However, on launching gnucash, all menu options get converted to <command>+key and can be invoked only by the <command> key (even the ones meant for invoking by the <Alt> key). So, I closed gnucash and went back and looked the accelerator-map file again. And it looks like all the lines I edited with the <Meta> tag have been converted back to use <Primary> tag. Not an issue, just an observation. I can make useful shortcuts for now - all to be invoked with the “Command” key instead of the “Alt” key. Just thought I’d list the observation here just in case the intended behaviour was different. Thanks again to both of you for timely help. Cheers. Deva On 13-Sep-2017, at 1:17 PM, Christoph R <subscriptions+lis...@rohland.net<mailto:subscriptions+lis...@rohland.net>> wrote: Hi Deva, did you remove the semicolon at the start of the line? The semicolon is the comment character which will make Gnucash ignore the line. Cheers, Christoph Am 13.09.2017 um 07:44 schrieb Deva - <pobox.d...@outlook.in<mailto:pobox.d...@outlook.in>>: Thank you for the response John. It was nice to know some historical context on this one. I changed the ~/Library/Application Support/Gnucash/accelerator-map file as you suggested (see sample extract below). First, I had it as "<Meta>b”, “<Meta>l”, etc. Started up gnucash, but nothing was happening when I pressed the Alt+l or Alt+j key on an open account register while I was on a transaction line. So I closed gnucash, went back and edited the file again to replace <Meta> with <Primary> as shown in the extract here. Started up gnucash again, and used the “Command” key with these letter combinations, but still no effect. ; (gtk_accel_path "<Actions>/GncPluginPageRegisterActions/ViewStyleBasicAction" "<Primary>b”) ; (gtk_accel_path "<Actions>/GncPluginPageRegisterActions/ViewStyleAutoSplitAction" "<Primary>l”) ; (gtk_accel_path "<Actions>/GncPluginPageRegisterActions/JumpTransactionAction" "<Primary>j”) ; (gtk_accel_path "<Actions>/GncPluginPageRegisterActions/DuplicateTransactionAction" "<Primary>d”) I perform these actions fairly frequently on any given transaction register, so I am keen on getting this to work. Am I missing something? Cheers, Deva On 12-Sep-2017, at 8:09 PM, John Ralls <jra...@ceridwen.us<mailto:jra...@ceridwen.us><mailto:jra...@ceridwen.us>> wrote: On Sep 12, 2017, at 5:30 AM, Deva - <pobox.d...@outlook.in<mailto:pobox.d...@outlook.in><mailto:pobox.d...@outlook.in>> wrote: Hello, I am running Gnucash v2.6.6 on Mac OS Sierra. This is in response to an earlier post clarifying how to setup keyboard access to frequently performed functions by Christopher Lam (see below). I couldn’t find a way to respond to that specific thread from my daily digest mail, hence this. I presume that post was about a windows fix. On my Mac, I found a similar file called osx_accel_map under /Applications/Gnucash/Contents/Resources/share/gnucash/ui. I edited the file (after making a backup of the original file) for the 2 lines mentioned in the earlier post, but instead of "<Primary>j" and "<Primary>l”, I changed it to “<Meta>j” and “<Meta>l” based on other such entries in the file. I restarted gnucash after these edits, but these accelerator keys don’t seem to work on an open register. I tried pressing both <CTRL> as well as <COMMAND> for the <Meta> key, but with no effect - nothing happens. Can you please let me know how I can set this up for a Mac? Deva, The file you want to edit is ~/Library/Application Support/Gnucash/accelerator-map. The one in the bundle is obsolete and not used. <Primary> means “Command” on Mac and “Control” everywhere else. <Meta> means “Alt”; on a Mac that’s the Alt/Option key. (The history about that is that I had a spirited discussion with Mitch Natterer of The GIMP about how to map control to command. <command> isn’t a modifier key in Gtk. I wanted to map command to meta, but Mitch insisted that <Meta> should be Alt/Option to be consistent with Linux and Win32. He solved the problem rather elegantly by inventing <Primary>. Shortly after that Mike Alexander improved my accelerator map code in GnuCash to not use osx_accel_map but didn’t remove it in case it might prove useful.) Regards, John Ralls _______________________________________________ gnucash-user mailing list gnucash-user@gnucash.org<mailto:gnucash-user@gnucash.org> https://lists.gnucash.org/mailman/listinfo/gnucash-user ----- Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All. _______________________________________________ gnucash-user mailing list gnucash-user@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-user ----- Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All.