input: recognize more escape sequences for <Shift+Home> and <Shift+End>

This fixes the second part of https://savannah.gnu.org/bugs/?52960.
master
Benno Schulenberg 2018-01-23 12:12:41 +01:00
parent 838b175d4f
commit fa7e9b11df
1 changed files with 6 additions and 0 deletions

View File

@ -978,6 +978,12 @@ int convert_sequence(const int *seq, size_t length, int *consumed)
case 'D': /* Esc [ 1 ; 2 D == Shift-Left on xterm. */ case 'D': /* Esc [ 1 ; 2 D == Shift-Left on xterm. */
shift_held = TRUE; shift_held = TRUE;
return arrow_from_abcd(seq[4]); return arrow_from_abcd(seq[4]);
#ifndef NANO_TINY
case 'F': /* Esc [ 1 ; 2 F == Shift-End on xterm. */
return SHIFT_END;
case 'H': /* Esc [ 1 ; 2 H == Shift-Home on xterm. */
return SHIFT_HOME;
#endif
} }
break; break;
#ifndef NANO_TINY #ifndef NANO_TINY