Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-02-21 05:36:35

DarkTrick
Member
Registered: 2019-02-16
Posts: 19

[solved] Suggestion: Logout window: "Cancel" is focused by default

Hello,

I'd like to "Request For Comments" on my suggestion.

Suggestion:
Logout screen / window focusses "Cancel"-button by default.

Current behaviour:
When logout window appears "Logout" button is focussed by default.

Reason for Suggestion:
Logout window might be triggered automatically. This happens on battery using devices when battery is too low.
If this happens while writing text where the space bar is in heavy usage, the system will log the user out against the actual will of the user.


Regards

Last edited by DarkTrick (2019-03-02 09:08:56)

Offline

#2 2019-02-21 11:25:41

alcornoqui
Member
Registered: 2014-07-28
Posts: 832

Re: [solved] Suggestion: Logout window: "Cancel" is focused by default

Seems sensible, +1

Offline

#3 2019-02-21 11:55:05

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,006

Re: [solved] Suggestion: Logout window: "Cancel" is focused by default

Feel free to create a bug report.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#4 2019-02-21 14:11:58

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 819

Re: [solved] Suggestion: Logout window: "Cancel" is focused by default

IMHO, in this case, it should have no focus.  i don't know if that is possible.  it could also be bad (not as bad as a logout) for it to pop up the be cancelled, losing a few keystrokes.

Offline

#5 2019-02-21 22:33:53

DarkTrick
Member
Registered: 2019-02-16
Posts: 19

Re: [solved] Suggestion: Logout window: "Cancel" is focused by default

IMHO, in this case, it should have no focus

You mean "no buttons are focussed", right? So pressing arrow keys are tab will start moving the focus around?

Or do you mean "make it impossible to control via keyboard".

As in very rare situations the mouse might be a problem as well, a reaction time might be worth to implement:
- Within 1 second of the dialog, no button can be pressed. Except if the dialog was opened throught the menu (on purpose by the user).

regards

Offline

#6 2019-02-22 16:48:30

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 819

Re: [solved] Suggestion: Logout window: "Cancel" is focused by default

what i mean is that nothing is focused and you have to explicitly click on what you want to be focused.  keys that normally always move focus around can be left to do that.

i like that reaction time delay.  maybe a delayed focus could work.

Offline

#7 2019-03-02 09:07:59

DarkTrick
Member
Registered: 2019-02-16
Posts: 19

Re: [solved] Suggestion: Logout window: "Cancel" is focused by default

Created a bug report and a patch (at least regarding the keyboard).
Implementing is timeout after powermanager having triggered the dialog is not yet doable for me.

https://bugzilla.xfce.org/show_bug.cgi?id=15158

Offline

Board footer

Powered by FluxBB