diff options
author | corvid <corvid@lavabit.com> | 2011-06-23 19:58:25 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-06-23 19:58:25 +0000 |
commit | b1fa85b269b7dacbef26b3106d02e2b3f25dcbc5 (patch) | |
tree | 2dff799675e67e967839f6d1cb83bbacdb7b3760 /src/keys.cc | |
parent | 70617461d5c20b5b362961feb6dba53368a98fbe (diff) |
multimedia key names
fltk-1.3 gives them special values, so they can't be used by specifying
keysyms in keysrc anymore.
I separated them from the other keys 1) so that they can be ignored when
looking through the list of 'ordinary' keys 2) because Back and BackSpace
could be confusing. Am I thrilled with the idea of having rules like
"forward = forward"? Well, not particularly.
Diffstat (limited to 'src/keys.cc')
-rw-r--r-- | src/keys.cc | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/keys.cc b/src/keys.cc index 8ec0978b..462b7c1a 100644 --- a/src/keys.cc +++ b/src/keys.cc @@ -66,7 +66,24 @@ static const Mapping_t keyNames[] = { { "Right", FL_Right }, { "Space", ' ' }, { "Tab", FL_Tab }, - { "Up", FL_Up } + { "Up", FL_Up }, + /* multimedia keys */ + { "Back", FL_Back }, + { "Favorites", FL_Favorites }, + { "Forward", FL_Forward }, + { "HomePage", FL_Home_Page }, + { "Mail", FL_Mail }, + { "MediaNext", FL_Media_Next }, + { "MediaPlay", FL_Media_Play }, + { "MediaPrev", FL_Media_Prev }, + { "MediaStop", FL_Media_Stop }, + { "Refresh", FL_Refresh }, + { "Search", FL_Search }, + { "Sleep", FL_Sleep }, + { "Stop", FL_Stop }, + { "VolumeDown", FL_Volume_Down }, + { "VolumeMute", FL_Volume_Mute }, + { "VolumeUp", FL_Volume_Up }, }; static const Mapping_t modifierNames[] = { |