| Ticket UUID: | 3295436 | |||
| Title: | console doesn't handle <<PasteSelection>> | |||
| Type: | Bug | Version: | obsolete: 8.6b1.1 | |
| Submitter: | andygoth | Created on: | 2011-04-30 16:14:14 | |
| Subsystem: | 54. [console] | Assigned To: | jan.nijtmans | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2026-10-05 07:22:39 | |
| Resolution: | Fixed | Closed By: | jan.nijtmans | |
| Closed on: | 2026-10-04 20:26:36 | |||
| Description: |
The <<PasteSelection>> event isn't properly handled by console. It just inserts the text wherever the mouse pointer is, even though this can corrupt the displayed history. Or, pasting to the "right" location by pointing at the insertion cursor, sometimes fails to put the text into the input buffer. This handler is inherited from the text widget. <<PasteSelection>> is generated by middle-clicking (<ButtonRelease-2>), according to tk.tcl. One possible approach is to handle <<PasteSelection>> in the same way as <Insert>, disregarding mouse pointer position. Another is to attempt to position the insertion cursor to the pointer position but to constrain it to the input line before inserting, the same as clicking and typing. | |||
| User Comments: |
serhiy.storchaka added on 2026-10-05 07:22:39:
Backported to 8.6 in [f001a822cd]. jan.nijtmans added on 2026-10-04 20:26:36: Fixed in [b3c98a13a9e05dd0|trunk] and core-9-0-branch Many thanks! serhiy.storchaka added on 2026-09-19 10:04:01: Reproduced: the middle-click paste inherited from the text widget inserted the selection at the pointer position. Fix in branch [6de398aff1]: <<PasteSelection>> now pastes the PRIMARY selection on the input line like <<Paste>>. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki