Pasting text with <Control-v>

From: Anirban (zilde_at_yahoo.com)
Date: 06/24/04


Date: 24 Jun 2004 12:02:18 -0700

Hi All,
I am writing a text editor for Indic scripts with Tcl/Tk.
I want <Control-v> to paste the selected text and bind
this key as:
bind Indic <Control-v> {paste_selection %W}

proc paste_selection does the insert in this way:

        if { $ie_selection != "" } {

                ...

                if { $platform_is_unix == 1 } {
                        $w insert insert $ie_selection
                }

                ...
        }
The problem is that <Control-v> not only pastes the text
but also moves the view port down in the text. How can I
disable this behaviour? This problem seems to occur only
on my XFCE/GNU/Linux machine running Tcl/Tk 8.4.4, and
not on WinXP running ActiveTcl/Tk 8.4 .

Thanks for any help.
AB