[Sugar-devel] [PATCH] Record - Fix for ticket #2011

imm ian.m.macarthur at talktalk.net
Wed Jun 9 03:44:27 EDT 2010


On 9 Jun 2010, at 3:28, Anish Mangal wrote:
>
> The bug description suggests that ctrl+w is the standard shortcut
> (maybe I got it wrong!)
>
> Also, I tried ctrl+w with write activity and it worked. So I figured
> that ctrl+w might be the standard shortcut.

We stumbled into similar territory on a (non-sugar) project.

It appears that there is a "convention", at least on some platforms,  
that:

	ctrl+q - quits the app
	ctrl+w - closes the current window (of a multi-window app)

Now... What does ctrl+w do when you close the last window of a multi- 
window app?
AFAICT, the depends on the the app and varies between implementations.

Similarly, if ctrl+w does mean "close the current window of this app"  
what does that mean for single-window apps?
Is it a synonym for ctrl+q then?

Anyway, I first encountered this on Windows, but have seen versions  
of the same behaviour on Linux and OSX, so I believe it is widely  
implemented (and there seems to be a body of users that expect that  
behaviour...)

Indeed, (testing now) Safari seem to interpret ctrl+w as "close  
current tab" and when you close the last tab, it quits.

I don't know the history of this, all I know is that we got messed up  
by this in our app - we'd done something like map ctrl+w to "word  
left" or whatever, and the users were upset because this clashed with  
their expectation that ctrl+w would close the foreground window...






More information about the Sugar-devel mailing list