From 8e49e4ed7c921c3f9aa3f7d699956a7e46ebba3a Mon Sep 17 00:00:00 2001 From: Casey Langen Date: Sat, 25 Jun 2016 18:41:57 -0700 Subject: [PATCH] Fixed ALT+BACKSPACE on non-Windows builds. --- src/musikbox/cursespp/TextInput.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/musikbox/cursespp/TextInput.cpp b/src/musikbox/cursespp/TextInput.cpp index 8b56c9cb8..41a594c0c 100755 --- a/src/musikbox/cursespp/TextInput.cpp +++ b/src/musikbox/cursespp/TextInput.cpp @@ -75,7 +75,7 @@ void TextInput::Show() { } bool TextInput::Write(const std::string& key) { - if (key == "M-bksp") { + if (key == "M-^H" || key == "M-^?" || key == "M-bksp") { this->buffer = ""; redrawContents(*this, ""); this->TextChanged(this, ""); @@ -111,4 +111,4 @@ void TextInput::SetText(const std::string& value) { this->TextChanged(this, this->buffer); redrawContents(*this, buffer); } -} \ No newline at end of file +}