cf
This commit is contained in:
parent
e72bfb4bc0
commit
8136e6ba1f
1 changed files with 5 additions and 2 deletions
|
|
@ -1,14 +1,17 @@
|
|||
use crate::settings::{get_settings, ClipboardHandling, PasteMethod};
|
||||
use crate::utils::is_wayland;
|
||||
use enigo::Enigo;
|
||||
use enigo::Key;
|
||||
use enigo::Keyboard;
|
||||
use enigo::Settings;
|
||||
use log::info;
|
||||
use std::process::Command;
|
||||
use tauri::AppHandle;
|
||||
use tauri_plugin_clipboard_manager::ClipboardExt;
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
use crate::utils::is_wayland;
|
||||
#[cfg(target_os = "linux")]
|
||||
use std::process::Command;
|
||||
|
||||
/// Sends a Ctrl+V or Cmd+V paste command using platform-specific virtual key codes.
|
||||
/// This ensures the paste works regardless of keyboard layout (e.g., Russian, AZERTY, DVORAK).
|
||||
fn send_paste_ctrl_v() -> Result<(), String> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue