Fix Shift+Function key on Qt-based terminals

Fixes #508.
This commit is contained in:
BenBE 2021-02-01 09:02:36 +01:00 committed by GitHub
parent 8bd543562b
commit 06b5828dc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

4
CRT.c
View File

@ -726,6 +726,10 @@ void CRT_init(const Settings* settings, bool allowUnicode) {
define_key("\033OQ", KEY_F(2));
define_key("\033OR", KEY_F(3));
define_key("\033OS", KEY_F(4));
define_key("\033O2P", KEY_F(13));
define_key("\033O2Q", KEY_F(14));
define_key("\033O2R", KEY_F(15));
define_key("\033O2S", KEY_F(16));
define_key("\033[11~", KEY_F(1));
define_key("\033[12~", KEY_F(2));
define_key("\033[13~", KEY_F(3));