fix bug that DEL key is incorrect in key_press/key_release(#259)

This commit is contained in:
cnjinhao
2017-09-22 15:47:12 +08:00
parent f14fc9bf6d
commit bb47cdc6c9
4 changed files with 22 additions and 7 deletions

View File

@@ -1233,7 +1233,7 @@ namespace nana{ namespace widgets
case keyboard::os_pagedown:
_m_handle_move_key(arg);
break;
case keyboard::os_del:
case keyboard::del:
// send delete to set_accept function
if (this->attr().editable && (!impl_->capacities.pred_acceptive || impl_->capacities.pred_acceptive(key)))
del();