Bug 360314 - Autokey abbreviations causes keystrokes in Konsole (and yakuake) to act strangely
Summary: Autokey abbreviations causes keystrokes in Konsole (and yakuake) to act stran...
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: keyboard (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL: http://hero.one/vids/konsole_bug.mp4
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2016-03-09 16:29 UTC by Martin
Modified: 2018-12-05 03:44 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 Martin 2016-03-09 16:29:36 UTC
I'm using the Autokey-application to make writing the same thing slightly faster for log-searches and stuff, so as an example, I have ;send which then replaces the typed abbreviation with smtpfilter*/mail-20160309*
Based on a Python script in Autokey: 
date = system.exec_command("date +'%Y%m%d'*")
keyboard.send_keys("smtpfilter*/mail-%s" % date)

It works fine everywhere. Ubuntu standard terminal, Terminator, and Guake. 
However, in Konsole and Yakuake, it works very rarely. Often it messes up the output, writes something extremely weird. And after that, any key you press either doesn't work, or types part of the abbreviation. 
In the video in the link, I hold down backspace on each attempt, and when the abbreviation fails and writes something mixed up, it starts deleting a bit, then it writes part of the abbreviation, causing that weird back and forth.. all while holding Backspace. 

Since it works in standard ubuntu terminal, guake and terminator, it seems to be something with Konsole and Yakuake. 
I even tried both the qt version, and gtk version of Autokey, and a completely fresh install of Kubuntu, but it does it in that as well, so seems to be something with KDE-consoles that messes up during the output.
Only way to stop it from doing that, is completely close Konsole and start it again. Opening a new tab will have the same issue. 

Reproducible: Always

Steps to Reproduce:
1. Install Autokey
2. Create a script in it, with the following: 
date = system.exec_command("date +'%Y%m%d'*")
keyboard.send_keys("smtpfilter*/mail-%s" % date)
3. Add an abbreviation, choose it should trigger instantly, and save. 
4. Open Konsole or Yakuake, and type the abbreviation. 

Actual Results:  
Almost every time, it writes something completely mixed up, like: "s/filter*ma*2010" instead of: "smtpfilter*/mail-20160309*"
Afterwards, all keyboard input fails. Occasionally it actually write what you want it to, but most of the time it just writes part of the abbreviation. Holding backspace causes very weird going back and forth.

Occasionally it does work, but it usually only works once, then it starts messing up again. 

Opening a window afterwards, like the About page, or Konsole settings seem to cause the application to hang.

Expected Results:  
It would output "smtpfilter*/mail-20160309*" and keyboard input would continue to work properly.

Currently using:
Ubuntu 14.04, 
Fresh Kubuntu install: 15.10 (same jumpy results). 

Konsole version 2.13.2
Yakuake version: 2.9.9
KDE Platform: 4.13.3

I'm actually not sure if this is a bug with Autokey or Konsole, but since it works with other terminals, it seems to be Konsole/Yakuake causing the issues.
Comment 1 Nate Graham 2018-10-20 23:36:21 UTC
Do you experience the same issue in Kate or KWrite? Would be good to see if it's Konsole/Yakuake-specific, or common to all KDE apps.
Comment 2 Andrew Crouthamel 2018-11-05 03:03:22 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2018-11-20 04:47:03 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2018-12-05 03:44:27 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!