From 946102f185b1d07fb3384ac40dd4eceb19ea7623 Mon Sep 17 00:00:00 2001 From: surles Date: Mon, 3 Aug 1998 18:29:50 +0000 Subject: Changed binding on to be a binding on <> --- library/entry.tcl | 11 +++++------ library/text.tcl | 10 +++++----- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/library/entry.tcl b/library/entry.tcl index 3a86498..62ee9b2 100644 --- a/library/entry.tcl +++ b/library/entry.tcl @@ -31,7 +31,6 @@ #------------------------------------------------------------------------- # The code below creates the default class bindings for entries. #------------------------------------------------------------------------- - bind Entry <> { if {![catch {set data [string range [%W get] [%W index sel.first]\ [expr {[%W index sel.last] - 1}]]}]} { @@ -62,6 +61,11 @@ bind Entry <> { bind Entry <> { %W delete sel.first sel.last } +bind Entry <> { + if {!$tkPriv(mouseMoved) || $tk_strictMotif} { + tkEntryPaste %W %x + } +} # Standard Motif bindings: @@ -108,11 +112,6 @@ bind Entry { bind Entry { %W icursor @%x } -bind Entry { - if {!$tkPriv(mouseMoved) || $tk_strictMotif} { - tkEntryPaste %W %x - } -} bind Entry { tkEntrySetCursor %W [expr {[%W index insert] - 1}] diff --git a/library/text.tcl b/library/text.tcl index 9191a03..586d7bf 100644 --- a/library/text.tcl +++ b/library/text.tcl @@ -86,11 +86,6 @@ bind Text { bind Text { %W mark set insert @%x,%y } -bind Text { - if {!$tkPriv(mouseMoved) || $tk_strictMotif} { - tkTextPaste %W %x %y - } -} bind Text { tkTextSetCursor %W insert-1c } @@ -254,6 +249,11 @@ bind Text <> { bind Text <> { catch {%W delete sel.first sel.last} } +bind Text <> { + if {!$tkPriv(mouseMoved) || $tk_strictMotif} { + tkTextPaste %W %x %y + } +} bind Text { catch {tkTextInsert %W [selection get -displayof %W]} } -- cgit v0.12