Commit Graph

34 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
Luis Javier Merino Morán
d85e1b0167 Fix macos.keytab
Since scrollPromptDown is PgDown+Shift+Ctrl, the entry that has to be
restricted to +Shift-Ctrl is also PgDown, not Down.
2022-12-14 22:57:52 +01:00
Matan Ziv-Av
2b4b2e394d Fix macos.keytab
Scroll prompt down is Shift+Ctrl+PgDown, not Shift+Ctrl+Down.
2022-12-14 10:12:57 +02: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
Hannah von Reth
aa390e159f Add ctrl+r to the mac key map 2021-09-09 14:01:22 +02:00
Kurt Hindenburg
e324355c06 Set parent and foreground process ids on macOS
This allows sending signals to work again.  Correct macos keytab so
Ctrl+C and Ctrl+V work.  Add warning to show sending signals
require foreground process id to be set.
2021-01-16 16:43:23 -05: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
46a0be0030 Add a macOS keytab file 2020-10-07 10:12:13 -04: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
Kurt Hindenburg
733a577e95 Remove vt420pc.keytab - it was never installed and appears to not work 2016-06-20 10:04:40 -04:00
Kurt Hindenburg
6aad2f071b Do not install README.KeyTab
It was also a bad idea to name this *.keytab
2016-06-20 10:02:34 -04:00
Kurt Hindenburg
92346e9f51 Depend on ECM 1.6 and use new install variables 2016-06-19 20:19:45 -04:00
Jekyll Wu
275f65186f cmake-lint: remove trailing whitespaces 2012-11-28 06:45:59 +08: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
acb1d2b4e8 Remove outdated operations and add new operations 2012-04-26 08:41:11 +08:00
Jekyll Wu
f3caf3ebf2 Fix double words 2012-04-24 15:32:16 +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
d2ad094a6a Do not install VT420 keyboard layout. I am told it doesn't work (BR:170220) and in any case I don't have a unit test to verify either way.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=863831
2008-09-23 09:19:04 +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
Robert Knight
77f003b179 Move the Vt100 and XFree 3.xx keyboard layouts into /historic. They are still in the repository but are no longer included in the default installation (I may make them available on the website instead). Used better names for the other layouts.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=676006
2007-06-15 17:43:45 +00:00
Robert Knight
19a29d182a Rename directories for clarity. konsole -> src , other -> data.
svn path=/branches/work/konsole-split-view/; revision=661562
2007-05-05 23:33:05 +00:00