Исправлено поведение при сочетании клавиш Control-y (повторение последнего действия)
This commit is contained in:
8
debian/changelog
vendored
8
debian/changelog
vendored
@@ -1,3 +1,11 @@
|
||||
projman (2.0.0-alpha23) stable; urgency=medium
|
||||
|
||||
* Исправлен флаг модификации при открытии файла
|
||||
* Исправлена 'Отмена' до пустого файла. Внес исправления на основе изменений https://github.com/wandrien/projman
|
||||
* Исправлено поведение при сочетании клавиш Control-y (повторение последнего действия)
|
||||
|
||||
-- svk <svk@nuk-svk.ru> Mon, 19 Jan 2026 14:49:29 +0300
|
||||
|
||||
projman (2.0.0-alpha22) stable; urgency=medium
|
||||
|
||||
* Исправил закрытие вкладок редактора и сохранение файла при разделении экрана.
|
||||
|
||||
@@ -796,7 +796,7 @@ namespace eval Editor {
|
||||
bind $txt <Control-comma> "Editor::Comment $txt $fileType"
|
||||
bind $txt <Control-period> "Editor::Uncomment $txt $fileType"
|
||||
bind $txt <Control-eacute> Find
|
||||
bind $txt <Insert> {OverWrite}
|
||||
# bind $txt <Insert> {OverWrite}
|
||||
bind $txt <ButtonRelease-1> "Editor::SearchBrackets $txt"
|
||||
bind $txt <Button-1><ButtonRelease-1> "Editor::SelectionHighlight $txt"
|
||||
bind $txt <<Modified>> "SetModifiedFlag $w $nb auto"
|
||||
@@ -804,6 +804,7 @@ namespace eval Editor {
|
||||
bind $txt <Control-Cyrillic_ghe> "Editor::SearchBrackets %W"
|
||||
bind $txt <Control-J> "catch {Editor::GoToFunction $txt}"
|
||||
bind $txt <Control-j> "catch {Editor::GoToFunction $txt}; break"
|
||||
bind $txt <Control-y> {Redo; break}
|
||||
bind $txt <Control-Cyrillic_o> "catch {Editor::GoToFunction $txt}; break"
|
||||
bind $txt <Alt-w> "$txt delete {insert wordstart} {insert wordend}"
|
||||
bind $txt <Alt-odiaeresis> "$txt delete {insert wordstart} {insert wordend}"
|
||||
|
||||
19
lib/gui.tcl
19
lib/gui.tcl
@@ -25,8 +25,8 @@ bind . <Control-q> Quit
|
||||
bind . <Control-Q> Quit
|
||||
bind . <Control-Cyrillic_shorti> Quit
|
||||
bind . <Control-eacute> Quit
|
||||
bind . <Insert> Add
|
||||
bind . <Delete> Del
|
||||
# bind . <Insert> Add
|
||||
# bind . <Delete> Del
|
||||
bind . <F1> ShowHelpDialog
|
||||
bind . <Control-n> Editor::New
|
||||
bind . <Control-N> Editor::New
|
||||
@@ -62,6 +62,21 @@ bind . <Alt-Cyrillic_el> {
|
||||
}
|
||||
}
|
||||
|
||||
# -------------
|
||||
# Thanks https://github.com/wandrien/
|
||||
# https://github.com/wandrien/projman/commit/22f6e235c3532c20573d44ee7eaaaa1fb56ad544
|
||||
event add <<Copy>> <Control-Insert>
|
||||
event add <<Paste>> <Shift-Insert>
|
||||
event add <<Cut>> <Shift-Delete>
|
||||
|
||||
set latestTxtWidget {}
|
||||
bind all <FocusIn> {
|
||||
if {[winfo class %W] eq "Ctext"} {
|
||||
global latestTxtWidget
|
||||
set latestTxtWidget %W
|
||||
}
|
||||
}
|
||||
# ---------
|
||||
bind . <Control-s> {FileOper::Save}
|
||||
bind . <Control-S> {FileOper::Save}
|
||||
bind . <Control-Cyrillic_hardsign> {FileOper::Save}
|
||||
|
||||
@@ -1134,3 +1134,24 @@ proc ExecutorCommandPathSetting {fileType} {
|
||||
puts $cfgVariables($fileType)
|
||||
}
|
||||
}
|
||||
|
||||
# -----------
|
||||
# Thanks https://github.com/wandrien/
|
||||
# https://github.com/wandrien/projman/commit/22f6e235c3532c20573d44ee7eaaaa1fb56ad544
|
||||
proc SendEventToLatestTxtWidget {ev} {
|
||||
global latestTxtWidget
|
||||
if {$latestTxtWidget eq ""} {
|
||||
return
|
||||
} elseif {[winfo exists $latestTxtWidget] && [winfo class $latestTxtWidget] eq "Ctext"} {
|
||||
event generate ${latestTxtWidget}.t $ev
|
||||
} else {
|
||||
set latestTxtWidget ""
|
||||
}
|
||||
}
|
||||
|
||||
proc Cut {} { SendEventToLatestTxtWidget <<Cut>> }
|
||||
proc Copy {} { SendEventToLatestTxtWidget <<Copy>> }
|
||||
proc Paste {} { SendEventToLatestTxtWidget <<Paste>> }
|
||||
proc Undo {} { SendEventToLatestTxtWidget <<Undo>> }
|
||||
proc Redo {} { SendEventToLatestTxtWidget <<Redo>> }
|
||||
# ------------
|
||||
|
||||
@@ -10,7 +10,7 @@ exec wish8.6 "$0" -- "$@"
|
||||
######################################################
|
||||
# Version: 2.0.0
|
||||
# Release: alpha23
|
||||
# Build: 19012026144418
|
||||
# Build: 21012026122731
|
||||
######################################################
|
||||
|
||||
# определим текущую версию, релиз и т.д.
|
||||
@@ -34,7 +34,6 @@ while {[gets $f line] >=0} {
|
||||
}
|
||||
close $f
|
||||
|
||||
|
||||
package require msgcat
|
||||
package require inifile
|
||||
package require ctext
|
||||
|
||||
Reference in New Issue
Block a user