Bug 309300

Summary: Esc as the default shortcut of "Set Focus to The Panel" is problematic for the embedded terminal
Product: [Applications] krusader Reporter: Till Schäfer <till2.schaefer>
Component: shortcutsAssignee: Krusader Bugs Distribution List <krusader-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: adaptee, alex.bikadorov, clearmartin, jan_lepper, krusader-bugs-null, till2.schaefer, toni.asensi
Priority: NOR    
Version First Reported In: 2.4.0-beta3 "Single Step"   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: "Show" nomenclature in Krusader, instead of "show/hide"
"Show" nomenclature in Dolphin, instead of "show/hide"
Instead of using a "Show-Hide" nomenclature, KDE normally uses a "Show" nomenclature and a disabled-or-enabled tick.

Description Till Schäfer 2012-10-31 10:13:19 UTC
Using the Esc-Key conflicts with vim, which uses this key to switch between input/command mode. 

Proposed solutions: 
1. make the esc-shortcut configurable
2. the embedded terminal start shortcut is actually also used for closing the terminal. This behaviour should be reflected by open/close terminal description. in this case the Esc-key is not needed at all. 

Reproducible: Always
Comment 1 Jekyll Wu 2012-10-31 10:57:58 UTC
My mistake of changing report status too eagerly...

"Esc" is the shortcut of the "Set Focus to The Panel" action in shortcuts dialog, so it is already configurable. Also, the "Show Terminal Emulator" is a toggle action, so the same shortcut can be used to open/close the embedded terminal.
Comment 2 Till Schäfer 2012-10-31 12:44:46 UTC
nice to know! now it works for me. 

However i did not noticed any change other than the terminal situation when setting "Set Focus to The Panel" to no key. i am still able to do everything as before. what is it used for? if it is only used for the terminal i would propose to change the default behaviour to no key.
Comment 3 Jekyll Wu 2012-11-15 08:17:23 UTC
As its name "Set Focus to The Panel" implies, it is used to transfer keyboard focus to the panel.

But I agree "Esc" as its default shortcut is a bit problematic for applications running with the embedded terminal.
Comment 4 Till Schäfer 2012-11-15 20:21:28 UTC
(In reply to comment #3)
> As its name "Set Focus to The Panel" implies, it is used to transfer
> keyboard focus to the panel.
> 
yes, but i didn find any use case. the foocus was always at the panel. (maybe i missed something)
Comment 5 Marcin Gryszkalis 2013-01-19 23:16:23 UTC
Note: in vim you can use ctrl-c to drop off insert mode
Comment 6 Alex Bikadorov 2016-12-31 16:52:35 UTC
Is there still something to do here. I understand that the escape key cannot be used in in the embedded terminal with the default shortcut. But first, it can be easily changed, and second, this is also true for any shortcut. There are tons of potential shortcut conflicts.
Comment 7 Till Schäfer 2017-01-02 16:42:46 UTC
The proposals here are 

* to change the misleading description to shortcut entry from "Show Terminal Emulator" to "Show/Hide Terminal Emulator", because:
  * it is obviously a imprecise shortcut description 
* to set "Set Focus to The Panel" to "no key" by default, because:
  * eliminating shortcut conflicts is good :-)
  * The ESC key is not needed, as the "Show Terminal Emulator" shortcut also hides the terminal emulator
Comment 8 Toni Asensi Esteve 2017-01-02 21:03:25 UTC
> * to change the misleading description to shortcut entry from "Show Terminal 
> Emulator" to "Show/Hide Terminal Emulator"

We have to notice that there are a lot of uses of the "show" word (not "show/hide"), and every one should be changed, I'll attach an screenshot. 

Other programs, like Dolphin, also use the word "show" instead of "show/hide", it seems to be the norm, I'll attach another screenshot. 

> * to set "Set Focus to The Panel" to "no key" by default, because:
>  * eliminating shortcut conflicts is good :-)
>  [...]

Maybe it's better not to use Esc to "Set Focus to The Panel" because it's used by a lot of programs that may be running in the embedded terminal. Nowadays Ctrl+Up can be used to "set focus to the panel", and also.. Ctrl+Down to return from the panel to the embedded terminal, those shortcuts are intuitive, related one to another, and easy to remember.
Comment 9 Toni Asensi Esteve 2017-01-02 21:05:50 UTC
Created attachment 103150 [details]
"Show" nomenclature in Krusader, instead of "show/hide"
Comment 10 Toni Asensi Esteve 2017-01-02 21:06:14 UTC
Created attachment 103151 [details]
"Show" nomenclature in Dolphin, instead of "show/hide"
Comment 11 Alex Bikadorov 2017-01-04 15:53:38 UTC
I agree with Toni, "show XYZ" is used in all KDE applications instead of "show/hide". I wouldn't change it.

"Ctrl+Up/down" is already used for toggling the focus between navigation bar and panel.
And also a hardcoded shortcut in terminal emulator and command line for toggling focus.

Additionally there is the "Ctrl+Shift+up/down" QAction shortcut to move the focus up/down between widgets.

So yes, I think we can remove the default "Escape" shortcut(?).
Comment 12 Martin Kostolný 2017-01-04 22:41:30 UTC
I also agree with keeping the "Show XYZ" and removing the default "Escape" shortcut.
Comment 13 Alex Bikadorov 2017-01-07 21:31:45 UTC
Git commit 29e3c83c01500628112c2739d16168fee425434c by Alexander Bikadorov.
Committed on 07/01/2017 at 21:30.
Pushed by abikadorov into branch 'master'.

FIXED: [ 309300 ] Esc as the default shortcut of "Set Focus to The Panel" is problematic for the embedded terminal

Default "Escape" shortcut removed.

M  +1    -1    krusader/Panel/viewactions.cpp

https://commits.kde.org/krusader/29e3c83c01500628112c2739d16168fee425434c
Comment 14 Toni Asensi Esteve 2017-01-08 09:45:12 UTC
Created attachment 103281 [details]
Instead of using a "Show-Hide" nomenclature, KDE normally uses a "Show" nomenclature and a disabled-or-enabled tick.

Instead of using a "Show-Hide" nomenclature, KDE normally uses a "Show" nomenclature and a disabled-or-enabled tick.