Commit Graph

20 Commits

Author SHA1 Message Date
Luis Javier Merino Morán
98d6128f1a 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
2022-12-14 23:14:19 +01:00
Luis Javier Merino Morán
939a30bd97 Propagate Shift+PgUp/PgDown in alternate screen
I cannot express this any better than magiblot at the linked bug report:

    In normal conditions, Shift+PgUp/Shift+PgDn allow traversing the
    scrollback buffer. However, when a client application enables the
    alternate screen buffer, scrollback is not available. In this
    situation, Shift+PgUp/Shift+PgDn keystrokes could be propagated to
    the client instead of being discarded by Konsole.

BUG: 461150
2022-12-14 23:03:49 +01:00
Luis Javier Merino Morán
9997bf74fc Cosmetic fixes for keytabs
- Improve the alignment of modifiers and strings.
- Reorder the [+-]Ctrl modifier in scroll* operations to improve
  alignment with operations without any Ctrl modifier.
- Reorder scroll* operations so PgUp resp PgDown operations appear
  together.
2022-12-14 23:03:43 +01:00
Matan Ziv-Av
e93ab7981a Correct the action name for Shift-Ctrl-PageDown
It should be named scrollPromptDown, not scrollDownPrompt.
2022-12-09 21:50:27 +02:00
Matan Ziv-Av
c4779f359b Add scroll to previous/next prompt
When using semantic shell integration (OSC 133), ctrl+shift+PgUp/Down
scrolls up down to the next prompt.
2022-07-03 07:58:54 +00:00
Martin T. H. Sandsmark
b2ce2db26a Add support for ctrl+tab to the default keyboard translation
This escape matches what e. g. vim and screen recognizes, and seems to
be fairly standard.

NB: By default ctrl+tab is mapped to changing tabs in Konsole, so you
need to reset that in the shortcut settings for this to have any impact.
2020-11-30 15:47:41 +00:00
Kurt Hindenburg
42e10f1098 Update URLs 2020-06-19 21:02:15 -04:00
Ahmad Samir
be7181c93a Backspace without CTRL should send '^?'
Summary:
This matches XTerm behaviour, so that pressing Alt+Backspace will send
\E + Del, which is the expected behaviour in some apps (e.g. emacs),
and it also matches the Konsole behaviour before commit
5345bbb0af

BUG: 394276
FIXED-IN: 18.04.2

Test Plan:
- Make sure you have the default .keytab file without any modifications
- Run `emacs -Q -nw`, press Ctrl+h k, to invoke the describe key functionality
- Press Alt+Backspace, it'll send C-M-h
- Apply the diff and test again, now it should send M-Del

Reviewers: #konsole, hindenburg

Reviewed By: #konsole, hindenburg

Subscribers: konsole-devel, #konsole

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D12899
2018-05-16 09:36:10 -04:00
Ahmad Samir
1ec394b9e7 Tweak README-KeyTab and README.keyboard a bit
Summary:
Rename README.KeyTab to README-KeyTab to prevent Konsole from trying to
load it as a keyboard translator file, and fix references to that file
name in other files.

Flesh out README-KeyTab and README.keyboard and reformat them.

Also copy the the original README-KeyTab to README-KeyTab-original,
just in case there's some concept that I misinterpretted/misunderstood.

Reviewers: #konsole, hindenburg

Reviewed By: #konsole, hindenburg

Subscribers: #konsole

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D12032
2018-04-13 08:44:01 -04:00
Ahmad Samir
2037c36a64 Make the keypad "5" key send "\E[E" when NumLock is off
Summary:
When NumLock is off the keypad "5" key should send '\E[E' sequence; this
matches xterm behaviour.

BUG: 189116

Reviewers: #konsole, hindenburg

Reviewed By: #konsole, hindenburg

Subscribers: hindenburg, #konsole

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D11958
2018-04-05 18:28:08 -04:00
Ahmad Samir
5345bbb0af Match xterm behaviour when pressing Ctrl+Backspace
Summary:
Change the default keyboard translator to match xterm behaviour:
 - Pressing Backspace without any modifiers sends '^?', ASCII DEL
   character
 - Pressing Control+Backspace sends '^H', BS character

BUG: 391075

Test Plan:
- Before applying the patch pressing Ctrl+V (to insert verbatim) then
  Backspace, sends '^?'; the same happens with Ctrl+Backspace
- With the patch:
  - pressing Ctrl+V then Backspace sends '^?'
  - pressing Ctrl+V then Ctrl+Backspace sends '^H'

Reviewers: #konsole, hindenburg

Reviewed By: #konsole, hindenburg

Subscribers: ngraham

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D10884
2018-02-27 23:04:10 -05:00
Jekyll Wu
ad4314c769 Allow Shift+Arrow to be passed into to applications like mc and vim
Note: action shortcuts take precedence of keybindings. So to use
Shift+Arrow in mc/vim, make sure they are not set as action shortcuts.

CCBUG: 204388
BUG: 59256
FIXED-IN: 4.8.3
2012-04-26 20:27:13 +08:00
Jekyll Wu
d55b07dc49 Prefer standard key name used by Qt
*  Prior ==> PgUP
  *  Next  ==> PgDown

The code for backward compatility with "Prior" and "Next" should
be removed after 2 or 3 major releases.
2012-04-24 11:46:03 +08:00
Jekyll Wu
78dbf8f1c1 Remove the left-over & unused code for supporting "Scroll Lock" key
It is decided to not reimplement this feature in KDE4 konsole:

  * It is non-trivial work to implement it correctly
  * It annoyed some users when it was available in KDE3 konsole
  * Not many users want this feature back

This is a follow up of commit cee0ce539b

CCBUG:172271
REVIEW:104156
2012-03-05 08:29:12 +08:00
Kurt Hindenburg
9cf9557c8f Add shortcuts to jump to top & bottom of history.
The shortcut of jumping to top of history is for the request of #45950

The shortcut of jumping to bottom of history is added not only for
consistency, but also to be used for #38390, especially its comment #9
 and #10.

Patch by Jekyll Wu <adaptee@gmail.com>

FEATURE: 38390
FEATURE: 45950
FIXED-IN: 4.8
REVIEW: 102124
2011-08-01 23:19:08 -04:00
Kurt Hindenburg
27592baf7d Fix to allow keys on numpad to work with numlock off.
Thanks to pan shi zhu for patch.

BUG: 169012

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1009268
2009-08-09 15:02:00 +00:00
Robert Knight
db3a98000a Disable application keypad support in the default key bindings file as, although it
produces the correct key codes as tested using 'vttest', it breaks Vim - which
enables application key pad by default.

BUG:183076
CCBUG:170220


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=925604
2009-02-13 16:19:55 +00:00
Robert Knight
bbb8c06248 Reformat default.keytab for easier reading and remove out-of-date comments about it being built-in and keypad characters not being supported by Qt.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=864078
2008-09-23 21:24:29 +00:00
Robert Knight
8379495760 Add key bindings for numpad keys in application mode. Passes vttest keyboard test for ANSI application mode.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=864013
2008-09-23 18:26:43 +00:00
Robert Knight
649ac01268 Copy the built-in key bindings into a new keytab file, install it and make it the default key bindings. The built-in one is still there at the moment. Reorganise the profile edit dialog, put the Scrolling page before the Keyboard Setup page since I expect it to be used more frequently. Add widgets for a not-yet-implemented test area to the key bindings editor.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=676102
2007-06-16 00:54:41 +00:00