Ticket #2321 (closed bug: fixed)

Opened 6 months ago

Last modified 4 weeks ago

[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 development
Cc: Blocked By:
Platform: All Blocking:

Description

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

Change History

Changed 4 weeks ago by aldeck

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

Changed 4 weeks ago by axeld

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

Changed 4 weeks ago by aldeck

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

Changed 4 weeks ago by stippi

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().

Changed 4 weeks ago by aldeck

  • owner changed from axeld to aldeck
  • status changed from new to 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 :)

Changed 4 weeks ago by aldeck

  • status changed from assigned to closed
  • resolution set to fixed

fixed in r28328

Note: See TracTickets for help on using tickets.