Native Full Screen shortcut key for Mac

10 views
Skip to first unread message

Safa Daneshvar

unread,
Jan 29, 2014, 6:10:18 AM1/29/14
to ze...@googlegroups.com
Hi
Beautiful app. 
I like it.
I like to use the "Ctrl + Commad + F" keys (the original keys for fullscreen mode in Mac) to full screen it.
Keyboard works well in the app.
Like "Ctrl + , " for  preferences.

: )

thank you so much
Safa

Ali Rastegar

unread,
Jan 29, 2014, 4:20:35 PM1/29/14
to ze...@googlegroups.com
Hi,

Thanks for your comments on behalf of Mohsen! :-)

I guess Mohsen is busy right now so we can't expect him to add this
shortcut, I will look into it but it may be beyond my knowledge to add
a new menu item with the correct keyboard shortcut.

Ali
> --
> You received this message because you are subscribed to the Google Groups
> "zekr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to zekr+uns...@googlegroups.com.
> To post to this group, send email to ze...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/zekr/fec5cc7e-bb8f-4c60-9ebd-90e9cfca8523%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

Ali Rastegar

unread,
Jan 30, 2014, 5:46:09 PM1/30/14
to ze...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages