comparison src/gui_mac.c @ 20603:c2570baa2e4c v8.2.0855

patch 8.2.0855: GUI tests fail because the test doesn't use a modifier Commit: https://github.com/vim/vim/commit/ebe9d34aa07037cff2188a8dd424ee1f59cbb0bf Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 30 21:52:54 2020 +0200 patch 8.2.0855: GUI tests fail because the test doesn't use a modifier Problem: GUI tests fail because the test doesn't use a modifier. Solution: Add "\{xxx}" to be able to encode a modifier.
author Bram Moolenaar <Bram@vim.org>
date Sat, 30 May 2020 22:00:04 +0200
parents 8590a462ad46
children fcccc29bd386
comparison
equal deleted inserted replaced
20602:67dccb63d65c 20603:c2570baa2e4c
4753 int key = 0; 4753 int key = 0;
4754 int modifiers = 0; 4754 int modifiers = 0;
4755 char_u *p_actext; 4755 char_u *p_actext;
4756 4756
4757 p_actext = menu->actext; 4757 p_actext = menu->actext;
4758 key = find_special_key(&p_actext, &modifiers, FALSE, FALSE, FALSE, 4758 key = find_special_key(&p_actext, &modifiers, FSK_SIMPLIFY, NULL);
4759 TRUE, NULL);
4760 if (*p_actext != 0) 4759 if (*p_actext != 0)
4761 key = 0; // error: trailing text 4760 key = 0; // error: trailing text
4762 // find_special_key() returns a keycode with as many of the 4761 // find_special_key() returns a keycode with as many of the
4763 // specified modifiers as appropriate already applied (e.g., for 4762 // specified modifiers as appropriate already applied (e.g., for
4764 // "<D-C-x>" it returns Ctrl-X as the keycode and MOD_MASK_CMD 4763 // "<D-C-x>" it returns Ctrl-X as the keycode and MOD_MASK_CMD