diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-01-13 21:00:08 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-01-13 21:00:08 (GMT) |
commit | 0685eee98b78605d4ff2e0dfc76c165c9ae589a4 (patch) | |
tree | 85e90e9ff3bdbbaf83c41abc9a41fc09524c44fc /library/tk.tcl | |
parent | 7e9cd69cb54782aca78dd08297b6e64125d97de1 (diff) | |
parent | ba9252f9e4aa81f649a5c1467468f30b7da6d50f (diff) | |
download | tk-0685eee98b78605d4ff2e0dfc76c165c9ae589a4.zip tk-0685eee98b78605d4ff2e0dfc76c165c9ae589a4.tar.gz tk-0685eee98b78605d4ff2e0dfc76c165c9ae589a4.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.
Diffstat (limited to 'library/tk.tcl')
-rw-r--r-- | library/tk.tcl | 42 |
1 files changed, 27 insertions, 15 deletions
diff --git a/library/tk.tcl b/library/tk.tcl index b421d0b..267a7bb 100644 --- a/library/tk.tcl +++ b/library/tk.tcl @@ -309,10 +309,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> } #---------------------------------------------------------------------- @@ -373,22 +385,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> |