Bug 405073 - Shift+Alt+Arrow keys are catched by Shift+Arrow rules => please modify keytab files
Summary: Shift+Alt+Arrow keys are catched by Shift+Arrow rules => please modify keytab...
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: keyboard (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-04 14:18 UTC by mailman.ich
Modified: 2022-12-30 18:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mailman.ich 2019-03-04 14:18:14 UTC
SUMMARY
Shift+Alt+Arrow keys do not work.
They are catched by the Shift+Arrow rules.

STEPS TO REPRODUCE
1. Open Konsole
2. Execute "clear"
2. Type Ctrl+V and Shift+Alt+Arrow_Up

OBSERVED RESULT
terminal scrolls up

EXPECTED RESULT
shell should display "^[[1;4A"

WORKAROUND/SOLUTION
Modify keytab files in "konsole/data/keyboard-layouts/*.keytab":
1) Change all "<arrow>+Shift-AppScreen" bindings to "<arrow>+Shift-Alt-AppScreen"
2) Add the following bindings:
key Right+Shift+Alt : "\E[1;4C"
key Down+Shift+Alt : "\E[1;4B"
key Left+Shift+Alt : "\E[1;4D"
key Up+Shift+Alt : "\E[1;4A"


SOFTWARE/OS VERSIONS
All Konsole versions (only tested with 5.x versions)
Comment 1 ninjalj 2022-12-16 20:11:27 UTC
Git commit 98d6128f1a37e260ebbee35eec4bd6ef602a30c8 by Luis Javier Merino Morán.
Committed on 14/12/2022 at 22:14.
Pushed by hindenburg into branch 'master'.

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.

M  +18   -8    data/keyboard-layouts/default.keytab
M  +18   -8    data/keyboard-layouts/macos.keytab

https://invent.kde.org/utilities/konsole/commit/98d6128f1a37e260ebbee35eec4bd6ef602a30c8
Comment 2 Kurt Hindenburg 2022-12-30 18:04:02 UTC
Git commit 07cbfb8904a6102107ac9e4ec3b368cfff8053da by Kurt Hindenburg, on behalf of Luis Javier Merino Morán.
Committed on 30/12/2022 at 16:49.
Pushed by hindenburg into branch 'release/22.12'.

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.

M  +18   -8    data/keyboard-layouts/default.keytab
M  +18   -8    data/keyboard-layouts/macos.keytab

https://invent.kde.org/utilities/konsole/commit/07cbfb8904a6102107ac9e4ec3b368cfff8053da