diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-07-25 15:49:07 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-07-25 15:49:07 +0200 |
commit | 8d9b40e71ab62f43c65a52225cb833ecc0d1bf6b (patch) | |
tree | a25e59faa9adfd7e352c407ded5beedf4242d1d2 /src/misc2.c | |
parent | 0fe849a13b4c0753d6b2424783879696a1fd4421 (diff) | |
download | vim-8d9b40e71ab62f43c65a52225cb833ecc0d1bf6b.zip |
Add support for horizontal scroll wheel. (Bjorn Winckler)
Diffstat (limited to 'src/misc2.c')
-rw-r--r-- | src/misc2.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/misc2.c b/src/misc2.c index 98f2991c4..6b9ffe151 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -2362,8 +2362,12 @@ static struct key_name_entry {K_RIGHTMOUSE, (char_u *)"RightMouse"}, {K_RIGHTDRAG, (char_u *)"RightDrag"}, {K_RIGHTRELEASE, (char_u *)"RightRelease"}, - {K_MOUSEDOWN, (char_u *)"MouseDown"}, - {K_MOUSEUP, (char_u *)"MouseUp"}, + {K_MOUSEDOWN, (char_u *)"ScrollWheelUp"}, + {K_MOUSEUP, (char_u *)"ScrollWheelDown"}, + {K_MOUSELEFT, (char_u *)"ScrollWheelRight"}, + {K_MOUSERIGHT, (char_u *)"ScrollWheelLeft"}, + {K_MOUSEDOWN, (char_u *)"MouseDown"}, /* OBSOLETE: Use */ + {K_MOUSEUP, (char_u *)"MouseUp"}, /* ScrollWheelXXX instead */ {K_X1MOUSE, (char_u *)"X1Mouse"}, {K_X1DRAG, (char_u *)"X1Drag"}, {K_X1RELEASE, (char_u *)"X1Release"}, |