File: bindings.tcl

package info (click to toggle)
printtool 4.5-7
  • links: PTS
  • area: main
  • in suites: woody
  • size: 568 kB
  • ctags: 123
  • sloc: tcl: 3,209; sh: 344; makefile: 65
file content (15 lines) | stat: -rwxr-xr-x 637 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
proc set_emacs_text_bindings {w} {}
proc set_emacs_entry_bindings {w} { }

# Set up editing bindings
bind Text <Meta-d> "%W delete insert {insert wordend}"
bind Text <Meta-p> "%W mark set insert 1.0"
bind Text <Meta-n> "%W mark set insert end"
bind Text <Delete> [bind Text <BackSpace>]
bind Text <3> "%W insert insert \[selection get\]; %W yview -pickplace insert"
bind Text <Control-y> "%W insert insert \[selection get\]; %W yview -pickplace insert"

# Set up editing bindings
bind Entry <Delete> [bind Entry <BackSpace>]
bind Entry <3> "%W insert insert \[selection get\]"
bind Entry <Control-y> "%W insert insert \[selection get\]"