GIF89a; EcchiShell v1.0
//proc/self/root/usr/share/tk8.5/

> { if {![catch {::tk::spinbox::GetSelection %W} tk::Priv(data)]} { clipboard clear -displayof %W clipboard append -displayof %W $tk::Priv(data) %W delete sel.first sel.last unset tk::Priv(data) } } bind Spinbox <> { if {![catch {::tk::spinbox::GetSelection %W} tk::Priv(data)]} { clipboard clear -displayof %W clipboard append -displayof %W $tk::Priv(data) unset tk::Priv(data) } } bind Spinbox <> { global tcl_platform catch { if {[tk windowingsystem] ne "x11"} { catch { %W delete sel.first sel.last } } %W insert insert [::tk::GetSelection %W CLIPBOARD] ::tk::EntrySeeInsert %W } } bind Spinbox <> { %W delete sel.first sel.last } bind Spinbox <> { if {$tk_strictMotif || ![info exists tk::Priv(mouseMoved)] || !$tk::Priv(mouseMoved)} { ::tk::spinbox::Paste %W %x } } bind Spinbox <> { %W selection range 0 end %W icursor end } # Standard Motif bindings: bind Spinbox <1> { ::tk::spinbox::ButtonDown %W %x %y } bind Spinbox { ::tk::spinbox::Motion %W %x %y } bind Spinbox { set tk::Priv(selectMode) word ::tk::spinbox::MouseSelect %W %x sel.first } bind Spinbox { set tk::Priv(selectMode) line ::tk::spinbox::MouseSelect %W %x 0 } bind Spinbox { set tk::Priv(selectMode) char %W selection adjust @%x } bind Spinbox { set tk::Priv(selectMode) word ::tk::spinbox::MouseSelect %W %x } bind Spinbox { set tk::Priv(selectMode) line ::tk::spinbox::MouseSelect %W %x } bind Spinbox { set tk::Priv(x) %x ::tk::spinbox::AutoScan %W } bind Spinbox { tk::CancelRepeat } bind Spinbox { ::tk::spinbox::ButtonUp %W %x %y } bind Spinbox { %W icursor @%x } bind Spinbox { %W invoke buttonup } bind Spinbox { %W invoke buttondown } bind Spinbox { ::tk::EntrySetCursor %W [expr {[%W index insert] - 1}] } bind Spinbox { ::tk::EntrySetCursor %W [expr {[%W index insert] + 1}] } bind Spinbox { ::tk::EntryKeySelect %W [expr {[%W index insert] - 1}] ::tk::EntrySeeInsert %W } bind Spinbox { ::tk::EntryKeySelect %W [expr {[%W index insert] + 1}] ::tk::EntrySeeInsert %W } bind Spinbox { ::tk::EntrySetCursor %W [::tk::EntryPreviousWord %W insert] } bind Spinbox { ::tk::EntrySetCursor %W [::tk::EntryNextWord %W insert] } bind Spinbox { ::tk::EntryKeySelect %W [::tk::EntryPreviousWord %W insert] ::tk::EntrySeeInsert %W } bind Spinbox { ::tk::EntryKeySelect %W [::tk::EntryNextWord %W insert] ::tk::EntrySeeInsert %W } bind Spinbox { ::tk::EntrySetCursor %W 0 } bind Spinbox { ::tk::EntryKeySelect %W 0 ::tk::EntrySeeInsert %W } bind Spinbox { ::tk::EntrySetCursor %W end } bind Spinbox { ::tk::EntryKeySelect %W end ::tk::EntrySeeInsert %W } bind Spinbox { if {[%W selection present]} { %W delete sel.first sel.last } else { %W delete insert } } bind Spinbox { ::tk::EntryBackspace %W } bind Spinbox { %W selection from insert } bind Spinbox