Add keyboard shortcut to run application.
commitb764a766bf2c0a4edba83d76d1bd42d08fe768e4
authorDoug Torrance <dtorrance@monmouthcollege.edu>
Sat, 10 May 2014 05:12:52 +0000 (10 00:12 -0500)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 10 May 2014 09:01:51 +0000 (10 10:01 +0100)
tree9568527766de144575dca90452e28ad977b37e1f
parentab348c6dc8a02187d54c9de1acc896348eab741d
Add keyboard shortcut to run application.

A common feature in several desktop environments is the ability to bring up
a "run application" dialog via a keyboard shortcut (frequently Mod1+F2).  This
feature has been available to Window Maker users only through the root menu.

This patch adds the ability for a user to set up a keyboard shortcut to
accomplish this, either via WPrefs or by editing ~/GNUstep/Defaults/WindowMaker,
e.g., with
 RunKey = "Mod1+F2";

Code from the execCommand function in rootmenu.c has been copied almost directly
into the handleKeyPress function in misc.c to accomplish this.
WPrefs.app/KeyboardShortcuts.c
src/defaults.c
src/event.c
src/keybind.h