1085 | | // (de)activation |
1086 | | bool inputMethodAware = false; |
1087 | | if (fFocus) |
1088 | | inputMethodAware = fFocus->Flags() & B_INPUT_METHOD_AWARE; |
1089 | | BMessage msg(active && inputMethodAware ? IS_FOCUS_IM_AWARE_VIEW : IS_UNFOCUS_IM_AWARE_VIEW); |
1090 | | BMessenger messenger(fFocus); |
1091 | | BMessage reply; |
1092 | | if (fFocus) |
1093 | | msg.AddMessenger("view", messenger); |
1094 | | _control_input_server_(&msg, &reply); |
| 1085 | // activation |
| 1086 | if (active) { |
| 1087 | bool inputMethodAware = false; |
| 1088 | if (fFocus) |
| 1089 | inputMethodAware = fFocus->Flags() & B_INPUT_METHOD_AWARE; |
| 1090 | BMessage msg(inputMethodAware ? IS_FOCUS_IM_AWARE_VIEW : IS_UNFOCUS_IM_AWARE_VIEW); |
| 1091 | BMessenger messenger(fFocus); |
| 1092 | BMessage reply; |
| 1093 | if (fFocus) |
| 1094 | msg.AddMessenger("view", messenger); |
| 1095 | _control_input_server_(&msg, &reply); |
| 1096 | } |