diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-01-13 16:02:44 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-01-13 16:02:44 (GMT) |
commit | bd63da3ee660ddb6ea5be7fc5e1fbe49a5429bb6 (patch) | |
tree | 16292755781d627c896da50e714dd55e1371263b | |
parent | 5676280816e3d3355ce864626bb7a328138648d8 (diff) | |
parent | de64eb806aa2c07e2a6661c850b23e39fe1701ff (diff) | |
download | tk-bd63da3ee660ddb6ea5be7fc5e1fbe49a5429bb6.zip tk-bd63da3ee660ddb6ea5be7fc5e1fbe49a5429bb6.tar.gz tk-bd63da3ee660ddb6ea5be7fc5e1fbe49a5429bb6.tar.bz2 |
[Bug 3600390]: tk_strictMotif not tested for.
Now all key-bindings for Control-a,b,e,f,n,p (and its shift variant) respect tk_strictMotif.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | library/tk.tcl | 42 | ||||
-rw-r--r-- | library/ttk/entry.tcl | 3 |
3 files changed, 33 insertions, 18 deletions
@@ -1,3 +1,9 @@ +2013-01-13 Jan Nijtmans <nijtmans@users.sf.net> + + * library/tk.tcl: [Bug 3600390]: tk_strictMotif not tested for. + * library/ttk/entry.tcl: Now all key-bindings for Control- + a,b,e,f,n,p (and its shift variant) respect tk_strictMotif. + 2013-01-10 Jan Nijtmans <nijtmans@users.sf.net> * library/text.tcl: [Bug 3600251]: Inappropriate replacement of Mac diff --git a/library/tk.tcl b/library/tk.tcl index ec4571d..5ed1724 100644 --- a/library/tk.tcl +++ b/library/tk.tcl @@ -306,10 +306,22 @@ proc ::tk::EventMotifBindings {n1 dummy dummy} { set op add } - event $op <<Cut>> <Control-Key-w> <Shift-Key-Delete> - event $op <<Copy>> <Meta-Key-w> <Control-Key-Insert> - event $op <<Paste>> <Control-Key-y> <Shift-Key-Insert> + event $op <<Cut>> <Control-Key-w> <Control-Lock-Key-W> <Shift-Key-Delete> + event $op <<Copy>> <Meta-Key-w> <Meta-Lock-Key-W> <Control-Key-Insert> + event $op <<Paste>> <Control-Key-y> <Control-Lock-Key-Y> <Shift-Key-Insert> event $op <<Undo>> <Control-underscore> + event $op <<PrevChar>> <Control-Key-b> <Control-Lock-Key-B> + event $op <<NextChar>> <Control-Key-f> <Control-Lock-Key-F> + event $op <<PrevLine>> <Control-Key-p> <Control-Lock-Key-P> + event $op <<NextLine>> <Control-Key-n> <Control-Lock-Key-N> + event $op <<LineStart>> <Control-Key-a> <Control-Lock-Key-A> + event $op <<LineEnd>> <Control-Key-e> <Control-Lock-Key-E> + event $op <<SelectPrevChar>> <Control-Key-B> <Control-Lock-Key-b> + event $op <<SelectNextChar>> <Control-Key-F> <Control-Lock-Key-f> + event $op <<SelectPrevLine>> <Control-Key-P> <Control-Lock-Key-p> + event $op <<SelectNextLine>> <Control-Key-N> <Control-Lock-Key-n> + event $op <<SelectLineStart>> <Control-Key-A> <Control-Lock-Key-a> + event $op <<SelectLineEnd>> <Control-Key-E> <Control-Lock-Key-e> } #---------------------------------------------------------------------- @@ -370,22 +382,22 @@ switch -exact -- [tk windowingsystem] { event add <<SelectAll>> <Control-Key-slash> event add <<SelectNone>> <Control-Key-backslash> - event add <<NextChar>> <Right> <Control-Key-f> <Control-Lock-Key-F> - event add <<SelectNextChar>> <Shift-Right> <Control-Key-F> <Control-Lock-Key-f> - event add <<PrevChar>> <Left> <Control-Key-b> <Control-Lock-Key-B> - event add <<SelectPrevChar>> <Shift-Left> <Control-Key-B> <Control-Lock-Key-b> + event add <<NextChar>> <Right> + event add <<SelectNextChar>> <Shift-Right> + event add <<PrevChar>> <Left> + event add <<SelectPrevChar>> <Shift-Left> event add <<NextWord>> <Control-Right> event add <<SelectNextWord>> <Control-Shift-Right> event add <<PrevWord>> <Control-Left> event add <<SelectPrevWord>> <Control-Shift-Left> - event add <<LineStart>> <Home> <Control-Key-a> <Control-Lock-Key-A> - event add <<SelectLineStart>> <Shift-Home> <Control-Key-A> <Control-Lock-Key-a> - event add <<LineEnd>> <End> <Control-Key-e> <Control-Lock-Key-E> - event add <<SelectLineEnd>> <Shift-End> <Control-Key-E> <Control-Lock-Key-e> - event add <<PrevLine>> <Up> <Control-Key-p> <Control-Lock-Key-P> - event add <<NextLine>> <Down> <Control-Key-n> <Control-Lock-Key-N> - event add <<SelectPrevLine>> <Shift-Up> <Control-Key-P> <Control-Lock-Key-p> - event add <<SelectNextLine>> <Shift-Down> <Control-Key-N> <Control-Lock-Key-n> + event add <<LineStart>> <Home> + event add <<SelectLineStart>> <Shift-Home> + event add <<LineEnd>> <End> + event add <<SelectLineEnd>> <Shift-End> + event add <<PrevLine>> <Up> + event add <<NextLine>> <Down> + event add <<SelectPrevLine>> <Shift-Up> + event add <<SelectNextLine>> <Shift-Down> event add <<PrevPara>> <Control-Up> event add <<NextPara>> <Control-Down> event add <<SelectPrevPara>> <Control-Shift-Up> diff --git a/library/ttk/entry.tcl b/library/ttk/entry.tcl index f5ba19e..7d9c9ef 100644 --- a/library/ttk/entry.tcl +++ b/library/ttk/entry.tcl @@ -141,9 +141,6 @@ bind TEntry <<NextLine>> {# nothing} ## Additional emacs-like bindings: # -bind TEntry <Control-Key-b> { ttk::entry::Move %W prevchar } -bind TEntry <Control-Key-d> { ttk::entry::Delete %W } -bind TEntry <Control-Key-f> { ttk::entry::Move %W nextchar } bind TEntry <Control-Key-h> { ttk::entry::Backspace %W } bind TEntry <Control-Key-k> { %W delete insert end } |