Bug 493895 - Super(Win)+z dumps a list of hosts with static mappings to localhost, this shortcut apparently not defined or documented anywhere.
Summary: Super(Win)+z dumps a list of hosts with static mappings to localhost, this sh...
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: keyboard (show other bugs)
Version: 24.05.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-01 05:47 UTC by Steve Vialle
Modified: 2024-10-08 02:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
attachment-3186025-0.html (3.44 KB, text/html)
2024-10-01 15:54 UTC, tcanabrava
Details
attachment-551031-0.html (1.36 KB, text/html)
2024-10-05 12:33 UTC, tcanabrava
Details
attachment-1230456-0.html (1.50 KB, text/html)
2024-10-07 13:44 UTC, tcanabrava
Details
attachment-1231063-0.html (2.11 KB, text/html)
2024-10-07 13:47 UTC, tcanabrava
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Vialle 2024-10-01 05:47:14 UTC
Pressing Win+z outputs some kind of table containing addresses/hostnames that map to 127.0.0.1 (looks like the contents of /etc/hosts, minus destination addresses and comments). 
This mystery key combination does not appear to be defined anywhere in KDE global, konsole, or shell configuration, and I can't reproduce it in any other terminal emulator or at a tty.


STEPS TO REPRODUCE
1. Press Win+z in a konsole window.

OBSERVED RESULT
::1                                        data-optout-service.uca.cloud.unity3d.com
api.redshell.io                            localhost
cdp.cloud.unity3d.com                      perdition
code-industry.net                 config.uca.cloud.unity3d.com

(These are all mapped to 'localhost' or '127.0.0.1' in /etc/hosts)

EXPECTED RESULT
Silence, or "z" printed.

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.15
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.6.51-gentoo-dist (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
This shortcut may well be of some use to somebody, but it needs to be documented and exposed in keyboard shortcut settings. As it stands I can't find an explanation anywhere and can only guess at it's purpose.
Comment 1 Steve Vialle 2024-10-01 05:55:48 UTC
A couple of other affected (or likely just crazy enough to fuzz keyboard combos in konsole) users here: https://forums.gentoo.org/viewtopic-t-1170786.html
Comment 2 tcanabrava 2024-10-01 15:54:55 UTC
Created attachment 174288 [details]
attachment-3186025-0.html

its defined on the ssh plugin. you can remove it on the ssh plugin
configuration.


On Tue, 1 Oct 2024 at 06:40 Steve Vialle <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=493895
>
>             Bug ID: 493895
>            Summary: Super(Win)+z dumps a list of hosts with static
>                     mappings to localhost, this shortcut apparently not
>                     defined or documented anywhere.
>     Classification: Applications
>            Product: konsole
>            Version: 24.05.2
>           Platform: Other
>                 OS: Linux
>             Status: REPORTED
>           Severity: normal
>           Priority: NOR
>          Component: keyboard
>           Assignee: konsole-devel@kde.org
>           Reporter: steve_v@runbox.com
>   Target Milestone: ---
>
> Pressing Win+z outputs some kind of table containing addresses/hostnames
> that
> map to 127.0.0.1 (looks like the contents of /etc/hosts, minus destination
> addresses and comments).
> This mystery key combination does not appear to be defined anywhere in KDE
> global, konsole, or shell configuration, and I can't reproduce it in any
> other
> terminal emulator or at a tty.
>
>
> STEPS TO REPRODUCE
> 1. Press Win+z in a konsole window.
>
> OBSERVED RESULT
> ::1
> data-optout-service.uca.cloud.unity3d.com
> api.redshell.io                            localhost
> cdp.cloud.unity3d.com                      perdition
> code-industry.net                 config.uca.cloud.unity3d.com
>
> (These are all mapped to 'localhost' or '127.0.0.1' in /etc/hosts)
>
> EXPECTED RESULT
> Silence, or "z" printed.
>
> SOFTWARE/OS VERSIONS
> Operating System: Gentoo Linux 2.15
> KDE Plasma Version: 6.1.5
> KDE Frameworks Version: 6.5.0
> Qt Version: 6.7.2
> Kernel Version: 6.6.51-gentoo-dist (64-bit)
> Graphics Platform: Wayland
>
> ADDITIONAL INFORMATION
> This shortcut may well be of some use to somebody, but it needs to be
> documented and exposed in keyboard shortcut settings. As it stands I can't
> find
> an explanation anywhere and can only guess at it's purpose.
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 3 Steve Vialle 2024-10-02 03:45:39 UTC
(In reply to tcanabrava from comment #2)
> its defined on the ssh plugin. you can remove it on the ssh plugin
> configuration.

That sounds more logical... But I still can't find a configuration dialog for this plugin, any way to enable/disable it, or a list of keyboard shortcuts.
I see "Plugins" -> "Show SSH Manager", but there are no settings or keyboard shortcuts in the SSH manager sidebar, only per-host connection settings.
Can't find anything pertaining to plugins or SSH in general konsole settings or profiles either.

Where is this "ssh plugin configuration"?
Comment 4 Steve Vialle 2024-10-05 02:50:59 UTC
https://bugs.kde.org/show_bug.cgi?id=96282
https://invent.kde.org/utilities/konsole/-/commit/5ba344714b8da55dfcc84823abac6f059a288386

12 years later, still undocumented and non-configurable...
Comment 5 tcanabrava 2024-10-05 12:33:00 UTC
Created attachment 174447 [details]
attachment-551031-0.html

its literally the *first* element, on the top of the plugin.


On Fri, 4 Oct 2024 at 22:51 Steve Vialle <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=493895
>
> --- Comment #4 from Steve Vialle <steve_v@runbox.com> ---
> https://bugs.kde.org/show_bug.cgi?id=96282
>
> https://invent.kde.org/utilities/konsole/-/commit/5ba344714b8da55dfcc84823abac6f059a288386
>
> 12 years later, still undocumented and non-configurable...
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 6 Steve Vialle 2024-10-05 19:24:31 UTC
(In reply to tcanabrava from comment #5)
> its literally the *first* element, on the top of the plugin.
If you prefer being gratuitously obtuse to simply explaining what this is for and how to configure it, lets go. 
* There is "literally" *no* configuration for the ssh plugin anywhere in konsole settings or profiles.
* The first element of the ssh plugin sidebar is: "Shortcut Ctrl+Alt+H", which is the shortcut to open the host/search window and has nothing whatsoever to do with anything.

Relevance to shortcuts using the Super/Win key: Zero.
Relevance to scancodes being passed to the shell: Zero.

Investigating (with xxd) shows Win+z in console producing:
^X@sz

This aligns with the bug report and commit I linked, ^X @ is the default readline binding for "possible-hostname-completions".

Next?
Comment 7 Steve Vialle 2024-10-05 19:31:41 UTC
Aside, apparently I linked the wrong forum thread earlier, the correct link is https://forums.gentoo.org/viewtopic-t-1171072.html
There you will find at least 6 other users being confused as to where this is coming from, along with the investigation leading to readline bindings and the KDE commit introducing it.
Comment 8 tcanabrava 2024-10-07 13:44:42 UTC
Created attachment 174501 [details]
attachment-1230456-0.html

sorry, not trying to be difficult. relember that text has no tone of voice.

you asked how to configure, its the first elemebt of the plugin.

you click on it and change the shortcut to something you prefer.


On Sat, 5 Oct 2024 at 15:31 Steve Vialle <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=493895
>
> --- Comment #7 from Steve Vialle <steve_v@runbox.com> ---
> Aside, apparently I linked the wrong forum thread earlier, the correct
> link is
> https://forums.gentoo.org/viewtopic-t-1171072.html
> There you will find at least 6 other users being confused as to where this
> is
> coming from, along with the investigation leading to readline bindings and
> the
> KDE commit introducing it.
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 9 tcanabrava 2024-10-07 13:47:48 UTC
Created attachment 174502 [details]
attachment-1231063-0.html

(maybe i was just too sleepy when i replied here and replied on the ewrong
bug? thats a possibility)


On Mon, 7 Oct 2024 at 09:44 <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=493895
>
> --- Comment #8 from tcanabrava@kde.org ---
> sorry, not trying to be difficult. relember that text has no tone of voice.
>
> you asked how to configure, its the first elemebt of the plugin.
>
> you click on it and change the shortcut to something you prefer.
>
>
> On Sat, 5 Oct 2024 at 15:31 Steve Vialle <bugzilla_noreply@kde.org> wrote:
>
> > https://bugs.kde.org/show_bug.cgi?id=493895
> >
> > --- Comment #7 from Steve Vialle <steve_v@runbox.com> ---
> > Aside, apparently I linked the wrong forum thread earlier, the correct
> > link is
> > https://forums.gentoo.org/viewtopic-t-1171072.html
> > There you will find at least 6 other users being confused as to where
> this
> > is
> > coming from, along with the investigation leading to readline bindings
> and
> > the
> > KDE commit introducing it.
> >
> > --
> > You are receiving this mail because:
> > You are the assignee for the bug.
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 10 Steve Vialle 2024-10-08 02:40:00 UTC
(In reply to tcanabrava from comment #8)
> you asked how to configure, its the first elemebt of the plugin.
> 
> you click on it and change the shortcut to something you prefer.

I only mentioned the SSH plugin because *you* asserted that was the source. It clearly is not. 
The SSH plugin has nothing whatsoever to do with this, see bug report and commit linked above.

This behaviour is hard-coded, undocumented, non-configurable, and serves no reasonable purpose outside of emacs.
It sends unexpected non-printing characters to the shell, please either make it discoverable and configurable, or simply remove it.