mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Don't count linefeeds in paste detection to avoid it going on when holding
enter key down git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3182 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
0f22561777
commit
c074f551bf
@ -380,13 +380,14 @@ static void sig_gui_key_pressed(gpointer keyp)
|
|||||||
gui_entry_insert_char(active_entry, key);
|
gui_entry_insert_char(active_entry, key);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret != 0) {
|
/* ret = 0 : some key create multiple characters - we're in the middle
|
||||||
/* some key create multiple characters - we're in the middle
|
of one. try to detect the keycombo as a single keypress rather than
|
||||||
of one. try to detect the keycombo as a single keypress
|
multiple small onces to avoid incorrect paste detection.
|
||||||
rather than multiple small onces to avoid incorrect
|
|
||||||
paste detection. */
|
CR/LF : don't count them to avoid paste detection when you're
|
||||||
|
holding enter key down */
|
||||||
|
if (ret != 0 && key != '\r' && key != '\n')
|
||||||
last_keypress = now;
|
last_keypress = now;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void key_send_line(void)
|
static void key_send_line(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user