Ongoing pastes were being abandoned on any key-down event. Quite
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 21 Sep 2001 17:54:29 +0000 (17:54 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 21 Sep 2001 17:54:29 +0000 (17:54 +0000)
commit256cb87c9f67d3f434eb15dfec9d423ea7c8bc76
treef46762ec16d280d379d5be41480f06f8548a3a7f
parent760e88b21a672b2a4bb96c4c1bc041758eac1677
Ongoing pastes were being abandoned on any key-down event. Quite
apart from the debatable semantic sanity of abandoning mid-paste,
this was breaking Shift-paste (theoretically valid in any case,
actually necessary with xterm mouse reporting enabled) because when
you hold down Shift the window receives a steady stream of KEYDOWN
messages as the key auto-repeats. One of those is likely to show up
in mid-paste and scupper you. For the moment, this has been changed
so that only a key press that actually _generates session data_
aborts a paste. In future I plan to review just why we're doing this
anyway (it may be that paste-little-by-little was a response to
rubbish socket buffering, in which case we can dispense with it
completely now).

git-svn-id: svn://svn.tartarus.org/sgt/putty@1279 cda61777-01e9-0310-a592-d414129be87e
window.c