swap key update

This commit is contained in:
sjpark
2023-02-09 11:54:23 +09:00
parent e3963adf49
commit edff4acbcb
11 changed files with 27 additions and 79 deletions

View File

@@ -36,7 +36,6 @@ pub struct Session<T: InvokeUiSession> {
pub sender: Arc<RwLock<Option<mpsc::UnboundedSender<Data>>>>,
pub thread: Arc<Mutex<Option<std::thread::JoinHandle<()>>>>,
pub ui_handler: T,
pub allow_swap_key: bool,
}
impl<T: InvokeUiSession> Session<T> {
@@ -506,9 +505,8 @@ impl<T: InvokeUiSession> Session<T> {
shift: bool,
command: bool,
) {
#[cfg(target_os = "macos")]
let (ctrl, command) =
if self.allow_swap_key {
if self.get_toggle_option("allow_swap_key".to_string()) {
(command, ctrl)
}
else {