Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/rcw.c
diff options
context:
space:
mode:
authormyheroyuki <myheroyuki@outlook.com>2023-09-20 15:21:17 +0300
committermyheroyuki <myheroyuki@outlook.com>2023-09-20 15:21:17 +0300
commitb37e5996d72426f03f16a6073511643a17747d95 (patch)
tree12ef4abf358592c3f5ef28e4c7925af00478900e /src/rcw.c
parent0a2e484dc6b70fbd2319c999a441a89dcdd101b4 (diff)
[REM-2977] add shortcut for 'send clipboard as keystrokes'
Diffstat (limited to 'src/rcw.c')
-rw-r--r--src/rcw.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rcw.c b/src/rcw.c
index 136ccc0d7..8d00965c5 100644
--- a/src/rcw.c
+++ b/src/rcw.c
@@ -4191,6 +4191,10 @@ static gboolean rcw_hostkey_func(RemminaProtocolWidget *gp, guint keyval, gboole
if (i < 0)
i = gtk_notebook_get_n_pages(GTK_NOTEBOOK(priv->notebook)) - 1;
gtk_notebook_set_current_page(GTK_NOTEBOOK(priv->notebook), i);
+ } else if (keyval == remmina_pref.shortcutkey_clipboard && !extrahardening) {
+ if (remmina_protocol_widget_plugin_receives_keystrokes(REMMINA_PROTOCOL_WIDGET(cnnobj->proto))) {
+ remmina_protocol_widget_send_clipboard((RemminaProtocolWidget*)cnnobj->proto, G_OBJECT(cnnobj->proto));
+ }
} else if (keyval == remmina_pref.shortcutkey_scale && !extrahardening) {
if (gtk_widget_is_sensitive(GTK_WIDGET(priv->toolitem_scale))) {
gtk_toggle_tool_button_set_active(