mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Send keys to the active pane
This commit is contained in:
parent
5fce53f904
commit
620740ce58
7
window.c
7
window.c
@ -1149,7 +1149,12 @@ window_pane_key(struct window_pane *wp, struct client *c, struct session *s,
|
|||||||
key_code key, struct mouse_event *m)
|
key_code key, struct mouse_event *m)
|
||||||
{
|
{
|
||||||
#ifdef TMATE_SLAVE
|
#ifdef TMATE_SLAVE
|
||||||
tmate_client_pane_key(wp->id, key);
|
/*
|
||||||
|
* pane_id == -1, which means that we should send the keys to
|
||||||
|
* the active pane. This is better due to latency issues in
|
||||||
|
* synchronizing the session layout.
|
||||||
|
*/
|
||||||
|
tmate_client_pane_key(-1, key);
|
||||||
#else
|
#else
|
||||||
|
|
||||||
struct window_pane *wp2;
|
struct window_pane *wp2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user