Syllable Forum Index Syllable
Syllable Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dropdownmenu control tabbing

 
Post new topic   Reply to topic    Syllable Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
aritc02



Joined: 28 Feb 2008
Posts: 214

PostPosted: Sat May 23, 2009 7:02 pm    Post subject: Dropdownmenu control tabbing Reply with quote

I have been doing some work on the prefs dialogs and one of the things I have been doing is straightening up the tab order for the controls and the dropdownmenu control is really bugging me on this. Once the dropdownmenu has the focus, pressing the tab key tabs between the dropdownmenu's edit box and the dropdownmenu's button and not to the next control on the dialog as set in code. Can anyone else produce this or is my system caught in an old Twilight Zone episode? This seems to be consistent.

Adam
Back to top
View user's profile Send private message
Vanders
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 849

PostPosted: Sun May 24, 2009 5:16 am    Post subject: Reply with quote

Any Control that uses Tab for it's own functions will do this. A multi-line TextView with is another culprit. For TextView it's probably correct, for DropDownMenu and any other Control which does this, it probably isn't and should be fixed. Tab is a pretty poor interface to elements in a list, in any case.
Back to top
View user's profile Send private message Send e-mail
Morph
The Knights of Syllable


Joined: 18 Oct 2007
Posts: 316
Location: Australia

PostPosted: Sun May 24, 2009 8:40 am    Post subject: Reply with quote

IIRC Haiku/BeOS has an override key Shift+Tab which always means 'move focus to the next element', even in things like TextViews which might otherwise absorb the keypress. If you press tab in a normal view it will cycle the focus only if it doesn't get absorbed by the view for some other purpose. But Shift+Tab always gets captured earlier up the chain and handled specially, and never gets passed to any views.
(Something similar may or may not be suitable for us, just mentioning it Smile )
Back to top
View user's profile Send private message Visit poster's website
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 1969
Location: Friesland

PostPosted: Sun May 24, 2009 8:46 am    Post subject: Reply with quote

Sounds good.
Back to top
View user's profile Send private message Visit poster's website
Vanders
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 849

PostPosted: Sun May 24, 2009 8:53 am    Post subject: Reply with quote

Shift + Tab sounds good to me as a general solution, although I'd also like to change the use of Tab in DropDownMenu anyway.
Back to top
View user's profile Send private message Send e-mail
aritc02



Joined: 28 Feb 2008
Posts: 214

PostPosted: Sun May 24, 2009 2:13 pm    Post subject: Reply with quote

Yes, I see what you mean. I had forgotten about the tab behaviour in the text view control. I think Shift + Tab is a good suggestion too.

Adam
Back to top
View user's profile Send private message
Morph
The Knights of Syllable


Joined: 18 Oct 2007
Posts: 316
Location: Australia

PostPosted: Thu May 28, 2009 4:33 pm    Post subject: Reply with quote

I looked at the Haiku code, and it seems I was wrong... they reserve Ctrl+Tab and Ctrl+Shift+Tab for navigation between controls. These events never get sent to views. Unmodified Tab does get sent to views and is not used for navigation in Haiku.
Back to top
View user's profile Send private message Visit poster's website
Morph
The Knights of Syllable


Joined: 18 Oct 2007
Posts: 316
Location: Australia

PostPosted: Thu May 28, 2009 5:35 pm    Post subject: Reply with quote

I've made some fixes and changes to keyboard navigation, particularly for compound views like Spinner and DropdownMenu that contain other views. Try them out in the next dev build and see if you can see any improvements (or regressions!). There will still be some apps where keyboard navigation doesn't work though as each app currently has to specifically support it.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Syllable Forum Index -> Bugs All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group