simulate scancode for translate mode

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-04-20 12:15:38 +08:00
parent 94d7339457
commit d8dbf72ad2
3 changed files with 5 additions and 74 deletions

View File

@@ -10,7 +10,6 @@ use crate::{
};
use flutter_rust_bridge::{StreamSink, SyncReturn};
use hbb_common::{
allow_err,
config::{self, LocalConfig, PeerConfig, PeerInfoSerde, ONLINE},
fs, log,
message_proto::KeyboardMode,
@@ -1396,10 +1395,10 @@ pub fn send_url_scheme(_url: String) {
#[inline]
#[cfg(not(any(target_os = "android", target_os = "ios")))]
pub fn plugin_event(id: String, event: Vec<u8>) {
pub fn plugin_event(_id: String, _event: Vec<u8>) {
#[cfg(feature = "plugin_framework")]
{
allow_err!(crate::plugin::handle_ui_event(&id, &event));
allow_err!(crate::plugin::handle_ui_event(&_id, &_event));
}
}