Opened 8 years ago

Closed 8 years ago

#7408 closed bug (fixed)

BTextView don't accept canna input method sometimes

Reported by: X512 Owned by: korli
Priority: normal Milestone: R1
Component: Kits/Interface Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: yes Platform: All

Description

After canna method have selected all is OK, but if focus change StyledEdit don't accept input. Input can be «fixed» by click on free space in Deskbar and after click on StyledEdit.

Attachments (3)

canna.png (9.0 KB) - added by X512 8 years ago.
Screenshot. StyledEdit is inactive because printscreen don't work with canna input method.
patch.diff (1.2 KB) - added by X512 8 years ago.
patch2.diff (562 bytes) - added by X512 8 years ago.

Download all attachments as: .zip

Change History (12)

Changed 8 years ago by X512

Attachment: canna.png added

Screenshot. StyledEdit is inactive because printscreen don't work with canna input method.

Changed 8 years ago by X512

Attachment: patch.diff added

comment:1 Changed 8 years ago by X512

Has a Patch: set

comment:2 Changed 8 years ago by X512

Component: Servers/input_serverKits/Interface Kit
Owner: changed from korli to axeld

Patch disable noitifing input_server when window loose focus. This solve undefined behavior when active and inactive windows send message to input_server; if input_server receive message from active window last then all work correctly, when not input_server get wrong information about B_INPUT_METHOD_AWARE view.

Last edited 8 years ago by X512 (previous) (diff)

comment:3 Changed 8 years ago by korli

Owner: changed from axeld to korli
Status: newassigned

comment:4 Changed 8 years ago by korli

I applied a similar patch in hrev42557. I found better to break early.

Please check whether it fits. Thanks!

comment:5 Changed 8 years ago by X512

Input work better, but bug still present. Context menu break input, because kAcceptKeyboardFocusFlag hack confuse input_server or app_server.

Changed 8 years ago by X512

Attachment: patch2.diff added

comment:6 Changed 8 years ago by X512

Patch2 fix bug with menu. Patch block noitifing input_server about focus view changes when window is inactive.

comment:7 Changed 8 years ago by korli

Applied in hrev42574.

comment:8 Changed 8 years ago by X512

Bug seems to be fixed. Thanks for applying patches!

comment:9 Changed 8 years ago by korli

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.