Pasting text with <Control-v>
From: Anirban (zilde_at_yahoo.com)
Date: 06/24/04
- Next message: Bruce Hartweg: "Re: canvas with large window (frame)"
- Previous message: Bill: "Re: Generating Ethernet frames with TCL?"
- Next in thread: Tom Wilkason: "Re: Pasting text with <Control-v>"
- Reply: Tom Wilkason: "Re: Pasting text with <Control-v>"
- Reply: Benjamin Riefenstahl: "Re: Pasting text with <Control-v>"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Bruce Hartweg: "Re: canvas with large window (frame)"
- Previous message: Bill: "Re: Generating Ethernet frames with TCL?"
- Next in thread: Tom Wilkason: "Re: Pasting text with <Control-v>"
- Reply: Tom Wilkason: "Re: Pasting text with <Control-v>"
- Reply: Benjamin Riefenstahl: "Re: Pasting text with <Control-v>"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]