Bug 10154 - Bug in Tk prevents <control>-v pasting
Bug#: 10154 Product:  Gentoo Linux Version: 1.4_rc1 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: karltk@gentoo.org Reported By: stephen@theboulets.net
Component: Applications
URL: 
Summary: Bug in Tk prevents <control>-v pasting
Keywords:  
Status Whiteboard: 
Opened: 2002-11-03 16:15 0000
Description:   Opened: 2002-11-03 16:15 0000
A bug in Tk prevents tcltk apps in linux from being able to use <control>-v
pasting in apps like idle.py (part of python).

The workaround is to comment out these lines in the file
"/usr/lib/tk8.3/text.tcl", which is part of dev-lang/tk-8.3.3-r2 like so:

#if {[string compare $tcl_platform(platform) "windows"]} {
#bind Text <Control-v> {
#    if {!$tk_strictMotif} {
#       tkTextScrollPages %W 1
#    }
#}
#}

If I knew how to use sed I'd write a script to do that.  ;)

Here's a link to the Tk bug report:

http://sourceforge.net/tracker/?func=detail&aid=605277&group_id=12997&atid=112997

------- Comment #1 From Karl Trygve Kalleberg (RETIRED) 2002-11-11 10:49:39 0000 -------
Fixed. Available for testing as dev-lang/tk-8.3.3-r3.

------- Comment #2 From Stephen Boulet 2002-11-14 08:14:24 0000 -------
The fix works for me. You can paste now.

Note that this fixes the issue where you can't paste. There is still the Tk bug
were pasting over highlighted text  won't replace the highlighted text though.
Hopefully the next version of Tk solves that one.