Behavior of Esc-key in some windows [DONE]

Questions, glitches, bugs and crashes
Locked
sasha
Posts: 168
Joined: Wed Feb 17, 2016 4:59 pm

Behavior of Esc-key in some windows [DONE]

Post by sasha » Tue Oct 11, 2016 7:12 pm

In the "File already exists" dialog and similar windows where there is a "Hide" and "Abort" option, the Esc-key currently hides the window. I would expect that it aborts the operation. What do you think?
nc_hide_abort.png
nc_hide_abort.png (75.51 KiB) Viewed 9347 times

User avatar
darek
Posts: 179
Joined: Thu Jul 16, 2015 4:50 pm
Location: Warsaw, Poland
Contact:

Re: Behavior of Esc-key in some windows

Post by darek » Wed Oct 12, 2016 9:09 am

Yup. That confused me as well. Esc means "get me out of here" (ESCAPE!) and I was surprised to find out an hour later that a window is still hidden there, with operation pending, waiting for me to click a button.

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Behavior of Esc-key in some windows

Post by mike » Thu Oct 13, 2016 1:54 am

I agree that this pattern is causing some confusion and will get into it later.
Currently I'm all in new file panels UI, and it's a quite complex pile of code.

User avatar
darek
Posts: 179
Joined: Thu Jul 16, 2015 4:50 pm
Location: Warsaw, Poland
Contact:

Re: Behavior of Esc-key in some windows

Post by darek » Thu Oct 13, 2016 11:48 am

"new file panels UI" -- oh yeah! "brief mode" confirmed! ;)

User avatar
mike
Posts: 1060
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Behavior of Esc-key in some windows

Post by mike » Thu Oct 13, 2016 12:01 pm

In fact:
Screen Shot 2016-10-13 at 18.53.00.png
Screen Shot 2016-10-13 at 18.53.00.png (109.28 KiB) Viewed 9333 times
The trickiest part is to make all these fancy Cocoa APIs run smooth under any serious workloads (at least thousands of items).
In this case any Apple's recommended approaches immediately transforms all this beauty into a pile of crap. :evil:

User avatar
darek
Posts: 179
Joined: Thu Jul 16, 2015 4:50 pm
Location: Warsaw, Poland
Contact:

Re: Behavior of Esc-key in some windows

Post by darek » Thu Oct 13, 2016 12:09 pm

Sweet! :) But as for general UI sluggishness -- I've noticed this about macOS as well. Some things are wonderful (like scrolling webpages, especially with touchpad) some things (like scrolling through large data sets, i.e. database rows, or anything with Xcode) feel like playing a game at 5 frames per second ;) Overall, when using keyboard, Windows always felt much more snappier than macOS. So what you're saying would confirm my suspicion that there's something nasty going on under the hood.

User avatar
deseven
Posts: 20
Joined: Thu Sep 08, 2016 1:56 pm
Location: Serbia
Contact:

Re: Behavior of Esc-key in some windows

Post by deseven » Mon Oct 17, 2016 11:18 pm

mike wrote:The trickiest part is to make all these fancy Cocoa APIs run smooth under any serious workloads (at least thousands of items).
Yep. Cell-based NSTableView was kinda faster, but it's deprecated now. View-based NSTableView, on the other side, is just terrible in terms of performance.

Locked