feat(nodes/input): update protocol
This commit is contained in:
@@ -118,7 +118,9 @@ impl InputMethod {
|
|||||||
self.handler_aliases
|
self.handler_aliases
|
||||||
.add(handler.uid.clone(), &handler_alias);
|
.add(handler.uid.clone(), &handler_alias);
|
||||||
|
|
||||||
if let Some(handler_field_node) = handler.field.spatial_ref().node.upgrade() {
|
let Some(handler_field_node) = handler.field.spatial_ref().node.upgrade() else {
|
||||||
|
return
|
||||||
|
};
|
||||||
// Handler's field
|
// Handler's field
|
||||||
let Ok(rx_field_alias) = Alias::create(
|
let Ok(rx_field_alias) = Alias::create(
|
||||||
&method_client,
|
&method_client,
|
||||||
@@ -131,9 +133,9 @@ impl InputMethod {
|
|||||||
};
|
};
|
||||||
self.handler_aliases
|
self.handler_aliases
|
||||||
.add(handler.uid.clone() + "-field", &rx_field_alias);
|
.add(handler.uid.clone() + "-field", &rx_field_alias);
|
||||||
}
|
|
||||||
|
|
||||||
let _ = input_method_client::create_handler(&method_node, &handler.uid, &handler_node);
|
|
||||||
|
let _ = input_method_client::create_handler(&method_node, &handler.uid, &handler_node, &rx_field_alias);
|
||||||
}
|
}
|
||||||
pub(super) fn handle_drop_handler(&self, handler: &InputHandler) {
|
pub(super) fn handle_drop_handler(&self, handler: &InputHandler) {
|
||||||
let uid = handler.uid.as_str();
|
let uid = handler.uid.as_str();
|
||||||
|
|||||||
Reference in New Issue
Block a user