Opened 12 years ago

Closed 12 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


Can't use tab key to get to the Long description field FileTypes.

Change History (6)

comment:1 by aldeck, 12 years ago

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 :)

comment:2 by axeld, 12 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 aldeck, 12 years ago

Should it be done by overriding KeyDown and "eating" Tab or is there a clever way?

comment:4 by stippi, 12 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 aldeck, 12 years ago

Owner: changed from axeld to aldeck
Status: newassigned

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 :)

comment:6 by aldeck, 12 years ago

Resolution: fixed
Status: assignedclosed

fixed in hrev28328

Note: See TracTickets for help on using tickets.