We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e488b0 commit 929a73aCopy full SHA for 929a73a
src/Widgets/Terminal.vala
@@ -234,10 +234,10 @@ public class Code.Terminal : Gtk.Box {
234
}
235
236
if (CONTROL_MASK in modifiers && pantheon_terminal_settings.get_boolean ("natural-copy-paste")) {
237
- if (match_keycode (Gdk.Key.c, keycode)) {
+ if (match_keycode (Gdk.Key.c, keycode) && terminal.get_has_selection ()) {
238
actions.activate_action (ACTION_COPY, null);
239
return Gdk.EVENT_STOP;
240
- } else if (match_keycode (Gdk.Key.v, keycode)) {
+ } else if (match_keycode (Gdk.Key.v, keycode) && current_clipboard.wait_is_text_available ()) {
241
actions.activate_action (ACTION_PASTE, null);
242
243
0 commit comments