Clean remapped keycodes when breakdown

This commit is contained in:
asur4s
2023-03-19 19:02:59 -07:00
parent b59f87f825
commit 6ffa2cacb1
3 changed files with 20 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ pub mod delegate;
#[cfg(target_os = "linux")]
pub mod linux;
use crate::input_service::clear_remapped_keycode;
#[cfg(not(any(target_os = "android", target_os = "ios")))]
use hbb_common::{message_proto::CursorData, ResultType};
#[cfg(not(target_os = "macos"))]
@@ -41,6 +42,11 @@ pub fn is_xfce() -> bool {
}
}
pub fn breakdown_callback() {
#[cfg(target_os = "linux")]
clear_remapped_keycode()
}
// Android
#[cfg(target_os = "android")]
pub fn get_active_username() -> String {