From bf719caaf30086d8ce97f46e9e9989ebe1be890b Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Wed, 29 May 2019 12:54:13 -0700 Subject: [PATCH] allow using cmd-v to paste on linux This is useful in a vmware vm on macos --- src/frontend/guicommon/host.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/guicommon/host.rs b/src/frontend/guicommon/host.rs index dcf62d7db..704e9749b 100644 --- a/src/frontend/guicommon/host.rs +++ b/src/frontend/guicommon/host.rs @@ -113,11 +113,11 @@ impl HostImpl { return Ok(true); } - if cfg!(target_os = "macos") && mods == KeyModifiers::SUPER && key == KeyCode::Char('c') { + if mods == KeyModifiers::SUPER && key == KeyCode::Char('c') { // Nominally copy, but that is implicit, so NOP return Ok(true); } - if (cfg!(target_os = "macos") && mods == KeyModifiers::SUPER && key == KeyCode::Char('v')) + if (mods == KeyModifiers::SUPER && key == KeyCode::Char('v')) || (mods == KeyModifiers::SHIFT && key == KeyCode::Insert) { let text = self.get_clipboard()?;