diff options
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/TextBox.cc | 10 |
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]; |