mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-02-24 00:14:14 +01:00
Add support for entering empty lines if the realtime status bar is active
This commit is contained in:
parent
b5655d3284
commit
47a882b6d7
10
hotkeys.go
10
hotkeys.go
|
|
@ -1,5 +1,7 @@
|
|||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func handleHotkey(k byte) {
|
||||
switch k {
|
||||
case 'l':
|
||||
|
|
@ -210,6 +212,14 @@ func handleHotkey(k byte) {
|
|||
log.Error("can't change agc: ", err)
|
||||
}
|
||||
}
|
||||
case '\n':
|
||||
if statusLog.isRealtime() {
|
||||
statusLog.mutex.Lock()
|
||||
statusLog.clearInternal()
|
||||
fmt.Println()
|
||||
statusLog.mutex.Unlock()
|
||||
statusLog.print()
|
||||
}
|
||||
case 'q':
|
||||
quitChan <- true
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue