Mercurial > vim
comparison src/getchar.c @ 30918:6a2a38b26caf v9.0.0793
patch 9.0.0793: MS-Windows: mouse scroll events only work with the dll
Commit: https://github.com/vim/vim/commit/605d02a9b73cb49ac5022a127db3eac7e16a5d83
Author: Christopher Plewright <chris@createng.com>
Date: Wed Oct 19 11:54:46 2022 +0100
patch 9.0.0793: MS-Windows: mouse scroll events only work with the dll
Problem: MS-Windows: mouse scroll events only work with the dll.
Solution: Accept CSI codes for MS-Windows without the GUI. (Christopher
Plewright, closes #11401)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 19 Oct 2022 13:00:10 +0200 |
parents | c7983f593fa7 |
children | 38d20a201beb |
comparison
equal
deleted
inserted
replaced
30917:5e178844c9c3 | 30918:6a2a38b26caf |
---|---|
1743 --allow_keys; | 1743 --allow_keys; |
1744 } | 1744 } |
1745 | 1745 |
1746 // Get two extra bytes for special keys | 1746 // Get two extra bytes for special keys |
1747 if (c == K_SPECIAL | 1747 if (c == K_SPECIAL |
1748 #ifdef FEAT_GUI | 1748 #if defined(FEAT_GUI) || defined(MSWIN) |
1749 || (c == CSI) | 1749 // GUI codes start with CSI; MS-Windows sends mouse scroll |
1750 // events with CSI. | |
1751 || c == CSI | |
1750 #endif | 1752 #endif |
1751 ) | 1753 ) |
1752 { | 1754 { |
1753 int save_allow_keys = allow_keys; | 1755 int save_allow_keys = allow_keys; |
1754 | 1756 |