Bug 360732

Summary: OK / Cancel button actions when closing a tab are wrongly interchanged when clicked via keyboard
Product: [Applications] konsole Reporter: Armin Jarmusch <syntaxdog>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED WORKSFORME    
Severity: normal CC: anikethgireesh, cpigat242, mail
Priority: NOR    
Version: 15.12.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Armin Jarmusch 2016-03-19 11:16:05 UTC
OK / Cancel button actions when closing a tab are wrongly interchanged when clicked via keyboard.

When I use the keyboard shortcut to close a tab in konsole (Ctrl-Shift-W by default if I remember correctly) and there is still a process running in the shell, Konsole will display a warning message dialog window with an OK and a Cancel button. If the user clicks those buttons via the mouse, everything is allright, no wrong behaviour. But if the user clicks those via keyboard (which konsole users should do quite often), the both actions are swapped/interchanged. That is, when I select the OK button (via hitting TAB) and then hit it (via either Space or Return), I get precisely the action I did not want.

I reproduced this behaviour on several different distributions: openSUSE 42.1 Leap, Fedora 23, Kubuntu.

Reproducible: Always

Steps to Reproduce:
1. Open a Konsole window
2. Open a new tab
3. Start e.g. "mc"
4. Hit Ctrl-Shift-W
5. Select that you did not want to close the tab
6. See your tab is gone anyways.

Actual Results:  
see above.

Expected Results:  
see above.
Comment 1 Kurt Hindenburg 2016-05-21 17:26:44 UTC
This is strange, I notice on 2 of my systems the first time I do it.  But as soon as I close that tab, I can't reproduce it.
Comment 2 Aniketh 2017-01-27 16:00:09 UTC
I tried in my own enviornment. I didn't found this bug do exist.On Konsole Version 15.12.1. Like I opened firefox with it and when I did CTRL+SHIFT+W and a pop-up came with Yes/No. Moving with keyboard arrow key's itself gave me the expected result.
Comment 3 Julian Steinmann 2019-02-14 17:05:21 UTC
I cannot reproduce this behavior with Konsole 18.12.2. Please reopen this bug if you still experience this bug. Thanks!