Allow Shift+Arrows+Alt/Ctrl for applications

The scrollLineUp and scrollLineDown were intercepting all Shift+Up and
Shift+Down presses, even if other modifiers were present.  Bind them
strictly to Shift+Arrow, and allow Shift+Alt+Arrow, Shift+Ctrl+Arrow and
Shift+Alt+Ctrl+Arrow for applications.

BUG: 405073
This commit is contained in:
Luis Javier Merino Morán
2022-12-14 01:44:31 +01:00
parent 939a30bd97
commit 98d6128f1a
2 changed files with 36 additions and 16 deletions

View File

@@ -81,6 +81,16 @@ key Down +Shift+AppScreen : "\E[1;*B"
key Left +Shift+AppScreen : "\E[1;*D"
key Right +Shift+AppScreen : "\E[1;*C"
key Up +Shift+Alt-AppScreen : "\E[1;*A"
key Down +Shift+Alt-AppScreen : "\E[1;*B"
key Left +Shift+Alt-AppScreen : "\E[1;*D"
key Right +Shift+Alt-AppScreen : "\E[1;*C"
key Up +Shift+Ctrl-AppScreen : "\E[1;*A"
key Down +Shift+Ctrl-AppScreen : "\E[1;*B"
key Left +Shift+Ctrl-AppScreen : "\E[1;*D"
key Right +Shift+Ctrl-AppScreen : "\E[1;*C"
# Keypad keys with NumLock ON
# (see https://web.archive.org/web/20070807181942/http://www.nw.com/nw/WWW/products/wizcon/vt100.html
# https://vt100.net/docs/vt100-ug/chapter3.html)
@@ -187,13 +197,13 @@ key Space +Control : "\x00"
# Some keys are used by konsole to cause operations.
# The scroll* operations refer to the history buffer.
key Up +Shift-AppScreen : scrollLineUp
key PgUp -Ctrl+Shift-AppScreen : scrollPageUp
key PgUp +Ctrl+Shift-AppScreen : scrollPromptUp
key Home +Shift-AppScreen : scrollUpToTop
key Down +Shift-AppScreen : scrollLineDown
key PgDown -Ctrl+Shift-AppScreen : scrollPageDown
key PgDown +Ctrl+Shift-AppScreen : scrollPromptDown
key End +Shift-AppScreen : scrollDownToBottom
key Up -Alt-Ctrl+Shift-AppScreen : scrollLineUp
key PgUp -Ctrl+Shift-AppScreen : scrollPageUp
key PgUp +Ctrl+Shift-AppScreen : scrollPromptUp
key Home +Shift-AppScreen : scrollUpToTop
key Down -Alt-Ctrl+Shift-AppScreen : scrollLineDown
key PgDown -Ctrl+Shift-AppScreen : scrollPageDown
key PgDown +Ctrl+Shift-AppScreen : scrollPromptDown
key End +Shift-AppScreen : scrollDownToBottom

View File

@@ -84,6 +84,16 @@ key Down +Shift+AppScreen : "\E[1;*B"
key Left +Shift+AppScreen : "\E[1;*D"
key Right +Shift+AppScreen : "\E[1;*C"
key Up +Shift+Alt-AppScreen : "\E[1;*A"
key Down +Shift+Alt-AppScreen : "\E[1;*B"
key Left +Shift+Alt-AppScreen : "\E[1;*D"
key Right +Shift+Alt-AppScreen : "\E[1;*C"
key Up +Shift+Ctrl-AppScreen : "\E[1;*A"
key Down +Shift+Ctrl-AppScreen : "\E[1;*B"
key Left +Shift+Ctrl-AppScreen : "\E[1;*D"
key Right +Shift+Ctrl-AppScreen : "\E[1;*C"
# Keypad keys with NumLock ON
# (see https://web.archive.org/web/20070807181942/http://www.nw.com/nw/WWW/products/wizcon/vt100.html
# https://vt100.net/docs/vt100-ug/chapter3.html)
@@ -190,13 +200,13 @@ key Space +Control : "\x00"
# Some keys are used by konsole to cause operations.
# The scroll* operations refer to the history buffer.
key Up +Shift-AppScreen : scrollLineUp
key PgUp -Ctrl+Shift-AppScreen : scrollPageUp
key PgUp +Ctrl+Shift-AppScreen : scrollPromptUp
key Home +Shift-AppScreen : scrollUpToTop
key Down +Shift-AppScreen : scrollLineDown
key PgDown -Ctrl+Shift-AppScreen : scrollPageDown
key PgDown +Ctrl+Shift-AppScreen : scrollPromptDown
key End +Shift-AppScreen : scrollDownToBottom
key Up -Alt-Ctrl+Shift-AppScreen : scrollLineUp
key PgUp -Ctrl+Shift-AppScreen : scrollPageUp
key PgUp +Ctrl+Shift-AppScreen : scrollPromptUp
key Home +Shift-AppScreen : scrollUpToTop
key Down -Alt-Ctrl+Shift-AppScreen : scrollLineDown
key PgDown -Ctrl+Shift-AppScreen : scrollPageDown
key PgDown +Ctrl+Shift-AppScreen : scrollPromptDown
key End +Shift-AppScreen : scrollDownToBottom