delete key
This commit is contained in:
parent
4e243d1599
commit
4179d51829
1 changed files with 4 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
|
||||
// $Id: TextBox.cc,v 1.9 2004/04/19 18:57:30 fluxgen Exp $
|
||||
// $Id: TextBox.cc,v 1.10 2004/07/15 13:48:54 fluxgen Exp $
|
||||
|
||||
#include "TextBox.hh"
|
||||
#include "Font.hh"
|
||||
|
@ -248,6 +248,9 @@ void TextBox::keyPressEvent(XKeyEvent &event) {
|
|||
case XK_Right:
|
||||
cursorForward();
|
||||
break;
|
||||
case XK_Delete:
|
||||
deleteForward();
|
||||
break;
|
||||
default:
|
||||
if (isprint(keychar[0])) {
|
||||
std::string val;
|
||||
|
|
Loading…
Reference in a new issue