Add Copy/Cut/Paste keys

This just adds support for the Copy/Cut/Paste keys and sets up
Copy/Paste as alternative defaults for Ctrl+Shift+C/V.
This commit is contained in:
Christian Duerr 2018-06-16 10:11:47 +00:00 committed by GitHub
parent 6cbae83f17
commit 0f700a01bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -292,6 +292,8 @@ live_config_reload: true
key_bindings:
- { key: V, mods: Control|Shift, action: Paste }
- { key: C, mods: Control|Shift, action: Copy }
- { key: Paste, action: Paste }
- { key: Copy, action: Copy }
- { key: Q, mods: Command, action: Quit }
- { key: W, mods: Command, action: Quit }
- { key: Insert, mods: Shift, action: PasteSelection }

View File

@ -267,6 +267,8 @@ live_config_reload: true
key_bindings:
- { key: V, mods: Command, action: Paste }
- { key: C, mods: Command, action: Copy }
- { key: Paste, action: Paste }
- { key: Copy, action: Copy }
- { key: Q, mods: Command, action: Quit }
- { key: W, mods: Command, action: Quit }
- { key: Home, chars: "\x1bOH", mode: AppCursor }

View File

@ -1889,6 +1889,9 @@ enum Key {
WebStop,
Yen,
Caret,
Copy,
Paste,
Cut,
}
impl Key {
@ -2047,6 +2050,9 @@ impl Key {
Key::WebStop => WebStop,
Key::Yen => Yen,
Key::Caret => Caret,
Key::Copy => Copy,
Key::Paste => Paste,
Key::Cut => Cut,
}
}
}