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 | |
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')
-rw-r--r-- | src/keys.cc | 19 | ||||
-rw-r--r-- | src/keysrc | 5 |
2 files changed, 23 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[] = { @@ -6,10 +6,15 @@ # The commented-out bindings below show the defaults built into Dillo. # # Modifiers recognized: "Shift", "Ctrl", "Alt", "Meta". +# # Key names recognized: "Backspace", "Delete", "Down", "End", "Esc", # "F1" through "F12", "Home", "Insert", "Left", "PageDown", "PageUp", # "Print", "Return", "Right", "Space", "Tab", "Up". # +# Multimedia keys: "Back", "Favorites", "Forward", "HomePage", "Mail", +# "MediaNext", "MediaPlay", "MediaPrev", "MediaStop", "Refresh", "Search", +# "Sleep", "Stop", "VolumeDown", "VolumeMute", VolumeUp". +# # If Dillo is running under X11, keys whose names are not recognized can # be specified using their keysym value in hexadecimal. Use xev to get # the keysym. Example rule: "0x1008ff27 = forward". |