Skip to content

Commit

Permalink
Implemented keystrokes for ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
antenore committed Jun 16, 2017
1 parent 4d5e400 commit 4640edc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion remmina/src/remmina_ssh_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,16 @@ remmina_plugin_ssh_vte_paste_clipboard (GtkMenuItem *menuitem, gpointer user_dat
vte_terminal_paste_clipboard (VTE_TERMINAL (user_data));
}

/* Send a keystroke to the plugin window */
static void remmina_ssh_keystroke(RemminaProtocolWidget *gp, const guint keystrokes[], const gint keylen)
{
TRACE_CALL("remmina_rdp_keystroke");
RemminaPluginSshData *gpdata = GET_PLUGIN_DATA(gp);
remmina_plugin_service->protocol_plugin_send_keys_signals(gpdata->vte,
keystrokes, keylen, GDK_KEY_PRESS | GDK_KEY_RELEASE);
return;
}

gboolean
remmina_ssh_plugin_popup_menu(GtkWidget *widget, GdkEvent *event, GtkWidget *menu) {

Expand Down Expand Up @@ -687,7 +697,7 @@ static RemminaProtocolPlugin remmina_plugin_ssh =
remmina_plugin_ssh_close_connection, // Plugin close connection
remmina_plugin_ssh_query_feature, // Query for available features
remmina_plugin_ssh_call_feature, // Call a feature
NULL // Send a keystroke
remmina_ssh_keystroke // Send a keystroke
};

void
Expand Down

0 comments on commit 4640edc

Please sign in to comment.