Opened 16 years ago
Closed 16 years ago
#2321 closed bug (fixed)
[FileTypes] can't get to Long description field using tab key.
Reported by: | diver | Owned by: | aldeck |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Preferences/FileTypes | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Can't use tab key to get to the Long description field FileTypes.
Change History (6)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
I guess it's less confusing to make it navigable. Maybe we could even filter out tabs in the text view and let it navigate instead, since there is little reason to have tabs in the description :-)
comment:3 by , 16 years ago
Should it be done by overriding KeyDown and "eating" Tab or is there a clever way?
comment:4 by , 16 years ago
No/Yes. You make a subclass from BTextView. In MySubClass::KeyDown() you check for bytes[0] == B_TAB and then just call through BView::KeyDown(). For everything else, you just call BTextView::KeyDown().
comment:5 by , 16 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Ok, will do! Thanks for the hints stippi, that's what i had in mind, although i didn't think about passing the tab to BView::KeyDown :)
fLongDescriptionView misses the B_NAVIGABLE flag on initialisation, but it was maybe intentional as when focused in the text view, hitting tab produces a tab in the text. One can use command-tab in this case though.
So do we want it B_NAVIGABLE or not? that is the question :)