Don't print 'KB OFF' on every render. Prevents glitches in non-KB mode

This commit is contained in:
Thomas Buckley-Houston 2016-08-02 19:08:26 +05:30
parent 8fe026ee4e
commit 73604f1044

View file

@ -422,6 +422,7 @@ func keyEvent() {
if (curev.Key == termbox.KeyCtrlM) && altPressed() {
keyboardMode = !keyboardMode
printXY(0, hipHeight, " ", true)
}
if keyboardMode {
@ -432,8 +433,6 @@ func keyEvent() {
return
}
printXY(0, hipHeight, "KB OFF", true)
xdotool(command, key)
}