mirror of
git://git.sv.gnu.org/nano.git
synced 2025-02-07 00:45:07 +03:00
input: prevent unintentional marking of text for shifted Meta keystrokes
The Shift detection on a Linux console was meant to affect only the dedicated cursor-movement keys, not <Shift+Meta+character>. This fixes https://savannah.gnu.org/bugs/?57598. Indirectly-reported-by: Brand Huntsman <alpha@qzx.com>
This commit is contained in:
parent
6cd98e32f7
commit
6df50790cd
@ -599,7 +599,8 @@ int parse_kbinput(WINDOW *win)
|
|||||||
if (modifiers & 0x01) {
|
if (modifiers & 0x01) {
|
||||||
if (retval == TAB_CODE)
|
if (retval == TAB_CODE)
|
||||||
return SHIFT_TAB;
|
return SHIFT_TAB;
|
||||||
shift_held = TRUE;
|
if (!meta_key)
|
||||||
|
shift_held = TRUE;
|
||||||
}
|
}
|
||||||
/* Is Alt being held? */
|
/* Is Alt being held? */
|
||||||
if (modifiers == 0x08) {
|
if (modifiers == 0x08) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user