Bug 406522 - super+fn keys not working in emacs
Summary: super+fn keys not working in emacs
Status: CONFIRMED
Alias: None
Product: konsole
Classification: Applications
Component: keyboard (show other bugs)
Version: 17.12.3
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-14 09:55 UTC by Ernesto
Modified: 2020-11-05 07:55 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 Ernesto 2019-04-14 09:55:27 UTC
SUMMARY


STEPS TO REPRODUCE
1. In a console window, run headless emacs: "emaccs -nw -Q"
2. Invoke the `describe-key` command, e.g. `C-h k` or `M-x describe-key`
3. Type super+F1 (<s-f1>) (or super+F2, etc)


OBSERVED RESULT

The observed behavior is that emacs does not interpret the keypress as "<s-f1>"

This is what emacs receives and interprets, from the `view-lossage` command:


 C-h k [describe-key]
 ESC O 1 P [self-insert-command]

The result is that P is inserted.


EXPECTED RESULT
I expect that emacs interprets an <s-f1> key sequence



I'm not too familiar with either the escape sequences into which konsole maps a keypress like super+F1, or the configuration in emacs that may be needed to interpret these escape sequences correctly, so I'm not sure whether this is a problem on the konsole or emacs side.

Is there a known recipe for allowing super+F1 and other FN keys to be mapped correctly from konsole to emacs?



SOFTWARE/OS VERSIONS 
Debian 9.8
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

Dependencies: 
4:16.12.0-4 - konsole-kpart (5 4:16.12.0-4) kio (0 (null)) libc6 (2 2.14) libkf5completion5 (2 4.97.0) libkf5configcore5 (2 4.98.0) libkf5configgui5 (2 4.97.0) libkf5configwidgets5 (2 4.96.0) libkf5coreaddons5 (2 5.2.0) libkf5crash5 (2 5.15.0) libkf5dbusaddons5 (2 4.99.0) libkf5i18n5 (2 4.97.0) libkf5iconthemes5 (2 4.96.0) libkf5kiowidgets5 (2 4.96.0) libkf5notifyconfig5 (2 4.96.0) libkf5widgetsaddons5 (2 4.96.0) libkf5windowsystem5 (2 4.96.0) libkf5xmlgui5 (2 4.98.0) libqt5core5a (2 5.7.0) libqt5gui5 (2 5.7.0) libqt5widgets5 (2 5.4) libstdc++6 (2 4.1.1) 


$ konsole --version
konsole 16.12.0
Comment 1 Justin Zobel 2020-11-05 07:55:50 UTC
This scrambled my brain trying to learn emacs keys but I can confirm this on Konsole from git master.