#7728: BTextControl::IsFocus() doesnt work correctly? ----------------------------------+----------------------- Reporter: cipri | Owner: axeld Type: bug | Status: closed Priority: normal | Milestone: R1 Component: Kits/Interface Kit | Version: R1/alpha3 Resolution: invalid | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: All ----------------------------------+----------------------- Changes (by anevilyak): * status: new => closed * resolution: => invalid Comment: That's actually correct ; MakeFocus() in the case of a BTextControl hands the focus to the contained BTextView, not to itself. Unfortunately, IsFocus() is non-virtual so it can't be overridden to return the focus state of the textview rather than the containing view. If you did control->TextView()->IsFocus() you would get true as expected in any case. -- Ticket URL: <http://dev.haiku-os.org/ticket/7728#comment:1> Haiku <http://dev.haiku-os.org> Haiku - the operating system.