Patch 8.2.4730
Problem:    MS-Windows GUI: cannot use CTRL-/.
Solution:   Handle the WM_KEYUP event. (Yasuhiro Matsumoto, closes #10141)
Files:      src/gui_w32.c


*** ../vim-8.2.4729/src/gui_w32.c       2022-03-01 16:00:03.131398059 +0000
--- src/gui_w32.c       2022-04-10 12:37:30.344597651 +0100
***************
*** 4635,4640 ****
--- 4635,4654 ----
        }
        break;
  
+     case WM_KEYUP:
+       // handle CTRL-/
+       if ((GetKeyState(VK_CONTROL) & 0x8000) != 0 && wParam == 0xBF)
+       {
+           char_u string[4];
+ 
+           string[0] = CSI;
+           string[1] = KS_MODIFIER;
+           string[2] = MOD_MASK_CTRL;
+           string[3] = 0x2F;
+           add_to_input_buf(string, 4);
+       }
+       return 0L;
+ 
      case WM_CHAR:
        // Don't use HANDLE_MSG() for WM_CHAR, it truncates wParam to a single
        // byte while we want the UTF-16 character value.
*** ../vim-8.2.4729/src/version.c       2022-04-10 12:13:52.286617779 +0100
--- src/version.c       2022-04-10 12:36:33.480673418 +0100
***************
*** 748,749 ****
--- 748,751 ----
  {   /* Add new patch number below this line */
+ /**/
+     4730,
  /**/

-- 
Looking at Perl through Lisp glasses, Perl looks atrocious.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220410113829.354DD1C0463%40moolenaar.net.

Raspunde prin e-mail lui