v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-05-21 10:00:59 -07:00
This commit is contained in:
eeeXun 2022-10-23 10:17:03 +08:00
parent 96ab014d93
commit bf24cc548d
2 changed files with 2 additions and 1 deletions

View File

@ -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
View File

@ -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)