aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-03-18 14:33:09 (GMT)
committerfluxgen <fluxgen>2004-03-18 14:33:09 (GMT)
commit3f615b530f25a87ab5984a1cfc4d3436cafbdba5 (patch)
tree0778ecaeeff9cfcace3a58bde2eb1b3bb2139da2
parent526c8f5faa371ea199e20c3fb3f810f959986097 (diff)
downloadfluxbox_paul-3f615b530f25a87ab5984a1cfc4d3436cafbdba5.zip
fluxbox_paul-3f615b530f25a87ab5984a1cfc4d3436cafbdba5.tar.bz2
C-c clears the window, and now @ and | works, patch from Mathias Gumz
-rw-r--r--src/FbTk/TextBox.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/FbTk/TextBox.cc b/src/FbTk/TextBox.cc
index cbb731b..6750aae 100644
--- a/src/FbTk/TextBox.cc
+++ b/src/FbTk/TextBox.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: TextBox.cc,v 1.7 2004/01/21 12:32:53 fluxgen Exp $ 22// $Id: TextBox.cc,v 1.8 2004/03/18 14:33:09 fluxgen Exp $
23 23
24#include "TextBox.hh" 24#include "TextBox.hh"
25#include "Font.hh" 25#include "Font.hh"
@@ -215,8 +215,14 @@ void TextBox::keyPressEvent(XKeyEvent &event) {
215 case XK_k: 215 case XK_k:
216 killToEnd(); 216 killToEnd();
217 break; 217 break;
218 case XK_c:
219 cursorHome();
220 m_text.clear();
221 adjustStartPos();
222 adjustEndPos();
223 break;
218 } 224 }
219 } else if (event.state == ShiftMask) { 225 } else if (event.state == ShiftMask || event.state == 0x2000) {
220 if (isprint(keychar[0])) { 226 if (isprint(keychar[0])) {
221 std::string val; 227 std::string val;
222 val += keychar[0]; 228 val += keychar[0];