diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-07-25 16:07:02 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-07-25 16:07:02 (GMT) |
commit | fda72faf1d67dd4016bf6842a6448943bd324707 (patch) | |
tree | b548a211106c683957d4631e5229f7fb1e3625b4 /generic/tkBind.c | |
parent | 5c07a1409bb742e9fe41e7e523146ce75d71580a (diff) | |
parent | 02adf45068f997e84707a3479e629b74b5409671 (diff) | |
download | tk-fda72faf1d67dd4016bf6842a6448943bd324707.zip tk-fda72faf1d67dd4016bf6842a6448943bd324707.tar.gz tk-fda72faf1d67dd4016bf6842a6448943bd324707.tar.bz2 |
Experiment: Handle scaling fractors for the ScrollWheel sensibly. Trying "40" as a good general scale factor (compared to "50" on X11 and "120" on Win32 and "1" on Aqua)
Diffstat (limited to 'generic/tkBind.c')
-rw-r--r-- | generic/tkBind.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c index 0208a7a..03e4a2b 100644 --- a/generic/tkBind.c +++ b/generic/tkBind.c @@ -388,6 +388,14 @@ static const ModInfo modArray[] = { {"Button4", Button4Mask, 0}, {"B5", Button5Mask, 0}, {"Button5", Button5Mask, 0}, + {"B6", Button6Mask, 0}, + {"Button6", Button6Mask, 0}, + {"B7", Button7Mask, 0}, + {"Button7", Button7Mask, 0}, + {"B8", Button8Mask, 0}, + {"Button8", Button8Mask, 0}, + {"B9", Button9Mask, 0}, + {"Button9", Button9Mask, 0}, {"Mod1", Mod1Mask, 0}, {"M1", Mod1Mask, 0}, {"Command", Mod1Mask, 0}, @@ -3995,7 +4003,7 @@ ParseEventDescription( p = GetField(p, field, FIELD_SIZE); } if (*field != '\0') { - if ((*field >= '1') && (*field <= '5') && (field[1] == '\0')) { + if ((*field >= '1') && (*field <= '9') && (field[1] == '\0')) { if (eventFlags == 0) { patPtr->eventType = ButtonPress; eventMask = ButtonPressMask; |