mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
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:
parent
6cbae83f17
commit
0f700a01bd
3 changed files with 10 additions and 0 deletions
|
@ -292,6 +292,8 @@ live_config_reload: true
|
||||||
key_bindings:
|
key_bindings:
|
||||||
- { key: V, mods: Control|Shift, action: Paste }
|
- { key: V, mods: Control|Shift, action: Paste }
|
||||||
- { key: C, mods: Control|Shift, action: Copy }
|
- { key: C, mods: Control|Shift, action: Copy }
|
||||||
|
- { key: Paste, action: Paste }
|
||||||
|
- { key: Copy, action: Copy }
|
||||||
- { key: Q, mods: Command, action: Quit }
|
- { key: Q, mods: Command, action: Quit }
|
||||||
- { key: W, mods: Command, action: Quit }
|
- { key: W, mods: Command, action: Quit }
|
||||||
- { key: Insert, mods: Shift, action: PasteSelection }
|
- { key: Insert, mods: Shift, action: PasteSelection }
|
||||||
|
|
|
@ -267,6 +267,8 @@ live_config_reload: true
|
||||||
key_bindings:
|
key_bindings:
|
||||||
- { key: V, mods: Command, action: Paste }
|
- { key: V, mods: Command, action: Paste }
|
||||||
- { key: C, mods: Command, action: Copy }
|
- { key: C, mods: Command, action: Copy }
|
||||||
|
- { key: Paste, action: Paste }
|
||||||
|
- { key: Copy, action: Copy }
|
||||||
- { key: Q, mods: Command, action: Quit }
|
- { key: Q, mods: Command, action: Quit }
|
||||||
- { key: W, mods: Command, action: Quit }
|
- { key: W, mods: Command, action: Quit }
|
||||||
- { key: Home, chars: "\x1bOH", mode: AppCursor }
|
- { key: Home, chars: "\x1bOH", mode: AppCursor }
|
||||||
|
|
|
@ -1889,6 +1889,9 @@ enum Key {
|
||||||
WebStop,
|
WebStop,
|
||||||
Yen,
|
Yen,
|
||||||
Caret,
|
Caret,
|
||||||
|
Copy,
|
||||||
|
Paste,
|
||||||
|
Cut,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Key {
|
impl Key {
|
||||||
|
@ -2047,6 +2050,9 @@ impl Key {
|
||||||
Key::WebStop => WebStop,
|
Key::WebStop => WebStop,
|
||||||
Key::Yen => Yen,
|
Key::Yen => Yen,
|
||||||
Key::Caret => Caret,
|
Key::Caret => Caret,
|
||||||
|
Key::Copy => Copy,
|
||||||
|
Key::Paste => Paste,
|
||||||
|
Key::Cut => Cut,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue