Bug 323959 - When focus is in file panel, pressing ESC doesn't cancel the editable location
Summary: When focus is in file panel, pressing ESC doesn't cancel the editable location
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 4.11.0
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-24 09:06 UTC by Yichao Zhou
Modified: 2024-09-21 16:19 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yichao Zhou 2013-08-24 09:06:16 UTC
I often need to use editable location.  After using that, I forget to press a ESC and explore files in file panel.  But then, I want to cancel the editable location, I need either press F6 or <C-L>+<ESC>.  That's not very convenient.  I hope I can press <ESC> to cancel that.

Under other environment such as windows 7, the editable location is automatically canceled when lose focus.  I prefer that behavior though.  I do not need to press any key!

Reproducible: Always
Comment 1 Frank Reininghaus 2013-08-24 18:00:09 UTC
Note that it switches back to breadcrumb mode if you leave the location bar by pressing "Enter" (at least in Dolphin 4.11.0 and later).
Comment 2 Christoph Feck 2013-08-24 21:41:30 UTC
Frank, if the URL navigator no longer has focus, you cannot close it by pressing Enter.

This cannot be fixed in kfile. See also bug 323960 comment #2.
Comment 3 Yichao Zhou 2013-08-25 04:52:56 UTC
Thanks for the response!

To state the problem more clearly, I hope

1.  Add a option for 'swiches back to breadcrumb mode whenere URL navigator has no focue'.
2.  If (1.) seems too intrusive even for an option, then it will be better if there exists a shortcut to exit even when URL navigator do not has focus.

I think the editable location is not very useful when it does not have focus:  in order to edit it, you still need to click a mouse or press <C-L> to get focus.  Then why not just automacally exit editable location when losing focus?
Comment 4 Yichao Zhou 2013-08-25 05:21:35 UTC
(In reply to comment #1)
> Note that it switches back to breadcrumb mode if you leave the location bar
> by pressing "Enter" (at least in Dolphin 4.11.0 and later).

That's great!  Unfortunately KDE 4.11 my distro hasn't been marked as stable.  I have to wait some time.

But still, this wish is meaningful. Sometime people enter editable location may be just for copying URL, or part of URL if  bug 323960 is fixed.  In this situation, they do not press enter.  Then user still needs a way to exit editable model "quickly".
Comment 5 Frank Reininghaus 2013-08-25 07:24:12 UTC
(In reply to comment #2)
> This cannot be fixed in kfile.

Well, I guess the KUrlNavigator could switch back to breadcrumb mode when it receives a FocusOut event. But this would probably be very annoying for people who use the "editable" mode as default in Dolphin.

The review request which implemented the "switch back to breadcrumb" thing when pressing Enter (https://git.reviewboard.kde.org/r/107748/) originally suggested to do it also when the location bar loses focus. However, I was afraid that this could cause some new annoying problems. To quote from my comment there:

"However, I see a problem: when editing the URL and then switching to another application (maybe to look up a directory name), the URL navigator switches back to 'breadcrumb' mode. What's worse, if you un-focus the URL navigator while you're in the middle of entering something, the input is lost."
Comment 6 Yichao Zhou 2013-08-25 07:47:21 UTC
That seems reasonable since <Enter> should work in most situation.

Then how about the original way: <ESC> to change it back even bar no longer has focus?
Comment 7 Frank Reininghaus 2013-09-06 11:16:52 UTC
(In reply to comment #6)
> Then how about the original way: <ESC> to change it back even bar no longer
> has focus?

It would be doable (provided the user has not set "editable location" as the default, of course).

However, please note that Esc already does two different things (clear the selection, and cancel the current keyboard search), and that it has been suggested to make it also cancel the loading of the current folder (which probably makes sense).

If Esc also switches the location bar back to breadcrumb mode, then pressing this key would have four different effects. I'm not sure if that would be good from a usability point of view.
Comment 8 Yichao Zhou 2013-09-06 14:40:49 UTC
Well, I'm the advocate to make both of the change. One can say that when people press ESC, they hope that the software will make everything back to default state and of course stop anything it is doing.
Comment 9 Justin Zobel 2021-03-09 02:19:11 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 10 reports_go_brrr 2024-09-21 16:19:45 UTC
Can reproduce it.

Operating System: Arch Linux 
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.7-arch1-1 (64-bit)
Graphics Platform: Wayland