Mercurial > vim
comparison src/gui_x11.c @ 20553:2c808d01a9fd v8.2.0830
patch 8.2.0830: Motif: can't map "!"
Commit: https://github.com/vim/vim/commit/80a20df86a1ceefa3506cc578ba0ba35da979e38
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 26 22:14:27 2020 +0200
patch 8.2.0830: Motif: can't map "!"
Problem: Motif: can't map "!". (Ben Jackson)
Solution: Remove the shift modifier if it's already included in the key.
(closes #6147)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 26 May 2020 22:15:03 +0200 |
parents | 8590a462ad46 |
children | a5a24d688e11 |
comparison
equal
deleted
inserted
replaced
20552:74e3316c1d5a | 20553:2c808d01a9fd |
---|---|
946 } | 946 } |
947 else | 947 else |
948 { | 948 { |
949 string[0] = key; | 949 string[0] = key; |
950 len = 1; | 950 len = 1; |
951 | |
952 // Remove the SHIFT modifier for keys where it's already included, | |
953 // e.g., '(', '!' and '*'. | |
954 if (!ASCII_ISALPHA(key) && key > 0x20 && key < 0x7f) | |
955 modifiers &= ~MOD_MASK_SHIFT; | |
951 } | 956 } |
952 | 957 |
953 if (modifiers != 0) | 958 if (modifiers != 0) |
954 { | 959 { |
955 string2[0] = CSI; | 960 string2[0] = CSI; |