It was easy to add Ctrl-Cmd-F as a shortcut key for Full Screen.
First of all please download and use this version of Zekr which works
better on latest versions of OS X:
https://www.dropbox.com/s/r7lhz0m0pxavngw/Zekr%201.1.0.dmg
Then download zekr.jar from here:
https://www.dropbox.com/s/6sky93kpxdls4y8/zekr.jar
Put it in Zekr.app/Contents/Resources/Java
You can right click on Zekr.app and click "Show Package Contents" to get there.
Then get this shortcut.xml file:
https://www.dropbox.com/s/ji7wia7vaoefpbz/shortcut.xml
(Don't forget to click on Download and Direct Download, saving the
loaded webpage won't work).
Put shortcut.xml in ~/.zekr/config
You can get to the ~/.zekr/config by pressing Command-Shift-G on
Finder and entering the "~/.zekr/config", without the "" .
After doing all these, open the Zekr application and the
Ctrl-Command-F shortcut should work for Full Screen.
Here is the explanation of what I did, for those interested:
- Zekr reads keyboard shortcuts from shortcut.xml that gets copied to
the user's .zekr folder after the first launch of Zekr.
- Changing the Full Screen shortcut to Ctrl-Command-F would not work
because Zekr treats Command and Control keys as the same.
- I had to remove some parts of Zekr's source code that would make
Zekr treat Command and Control as the same.
- Zekr includes a button/toolbar for exiting the Full Screen. This
button is useful on other operating systems but serves no purpose on
OS X 10.7 or later which include a native Full Screen feature. I
decided to remove that button too.
- The above two tasks required me to build a new zekr.jar, which is
why I'm asking Safa to download my new zekr.jar.
- For this to work correctly on new installations, my build of
zekr.jar should be used and the shortcut.xml in
"Zekr.app/Contents/Resources/Java/res/config" should be replaced with
the file I uploaded.
- So why not just make a ready to use package and upload it? I may do
it in the future, but Safa already had a shortcut.xml in his user's
folder so changing the shortcut.xml in
"Zekr.app/Contents/Resources/Java/res/config" would not suffice.
Best Regards,
Ali