mirror of
https://github.com/eeeXun/GTT.git
synced 2025-05-21 10:00:59 -07:00
remap
This commit is contained in:
parent
96ab014d93
commit
bf24cc548d
@ -4,6 +4,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// search XDG_CONFIG_HOME or $HOME/.config
|
||||||
func configInit() {
|
func configInit() {
|
||||||
var defaultConfigPath string
|
var defaultConfigPath string
|
||||||
|
|
||||||
|
2
ui.go
2
ui.go
@ -133,7 +133,7 @@ func translatePageHandler(event *tcell.EventKey) *tcell.EventKey {
|
|||||||
src_box.SetText(dst_text, true)
|
src_box.SetText(dst_text, true)
|
||||||
}
|
}
|
||||||
dst_box.SetText(src_text)
|
dst_box.SetText(src_text)
|
||||||
case tcell.KeyCtrlN:
|
case tcell.KeyCtrlO:
|
||||||
message := src_box.GetText()
|
message := src_box.GetText()
|
||||||
if len(message) > 0 {
|
if len(message) > 0 {
|
||||||
err := translator.PlaySound(translator.srcLang, message)
|
err := translator.PlaySound(translator.srcLang, message)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user