home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.0.125 < prev    next >
Encoding:
Internet Message Format  |  2002-01-09  |  2.6 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.125
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.0.125 (extra)
  11. Problem:    Win32: When using the multi_byte_ime feature pressing the shift
  12.             key would be handled as if a character was entered, thus mappings 
  13.             with a shifted key didn't work. (Charles Campbell)
  14. Solution:   Ignore pressing the shift, control and alt keys.
  15. Files:      src/os_win32.c
  16.  
  17.  
  18. *** ../vim60.124/src/os_win32.c    Wed Jan  9 16:08:19 2002
  19. --- src/os_win32.c    Thu Jan 10 21:12:05 2002
  20. ***************
  21. *** 1157,1180 ****
  22.   
  23.       if (cRecords > 0)
  24.       {
  25. - #ifdef FEAT_MBYTE_IME
  26. -         /* Windows IME sends two '\n's with only one 'ENTER'.
  27. -            first, wVirtualKeyCode == 13. second, wVirtualKeyCode == 0 */
  28.           if (ir.EventType == KEY_EVENT && ir.Event.KeyEvent.bKeyDown)
  29.           {
  30.           if (ir.Event.KeyEvent.uChar.UnicodeChar == 0
  31.               && ir.Event.KeyEvent.wVirtualKeyCode == 13)
  32.           {
  33.               ReadConsoleInput(g_hConIn, &ir, 1, &cRecords);
  34.               continue;
  35.           }
  36. -         return decode_key_event(&ir.Event.KeyEvent, &ch, &ch2, FALSE);
  37. -         }
  38. - #else
  39. -         if (ir.EventType == KEY_EVENT && ir.Event.KeyEvent.bKeyDown
  40. -             && decode_key_event(&ir.Event.KeyEvent, &ch, &ch2, FALSE))
  41. -         return TRUE;
  42.   #endif
  43.   
  44.           ReadConsoleInput(g_hConIn, &ir, 1, &cRecords);
  45.   
  46. --- 1157,1177 ----
  47.   
  48.       if (cRecords > 0)
  49.       {
  50.           if (ir.EventType == KEY_EVENT && ir.Event.KeyEvent.bKeyDown)
  51.           {
  52. + #ifdef FEAT_MBYTE_IME
  53. +         /* Windows IME sends two '\n's with only one 'ENTER'.  First:
  54. +          * wVirtualKeyCode == 13. second: wVirtualKeyCode == 0 */
  55.           if (ir.Event.KeyEvent.uChar.UnicodeChar == 0
  56.               && ir.Event.KeyEvent.wVirtualKeyCode == 13)
  57.           {
  58.               ReadConsoleInput(g_hConIn, &ir, 1, &cRecords);
  59.               continue;
  60.           }
  61.   #endif
  62. +         if (decode_key_event(&ir.Event.KeyEvent, &ch, &ch2, FALSE))
  63. +             return TRUE;
  64. +         }
  65.   
  66.           ReadConsoleInput(g_hConIn, &ir, 1, &cRecords);
  67.   
  68. *** ../vim60.124/src/version.c    Thu Jan 10 20:17:24 2002
  69. --- src/version.c    Thu Jan 10 21:14:22 2002
  70. ***************
  71. *** 608,609 ****
  72. --- 608,611 ----
  73.   {   /* Add new patch number below this line */
  74. + /**/
  75. +     125,
  76.   /**/
  77.  
  78. -- 
  79. Mynd you, m00se bites Kan be pretty nasti ...
  80.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  81.  
  82.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  83. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  84.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  85.