improve cursor move keys support in text editor refs refs #1

This commit is contained in:
beru
2015-05-05 14:13:16 +09:00
parent e7c9708b4f
commit 2da65827a0
5 changed files with 173 additions and 12 deletions

View File

@@ -136,7 +136,7 @@ namespace drawerbase {
void drawer::key_press(graph_reference, const arg_keyboard& arg)
{
if(editor_->respond_key(arg.key))
if(editor_->respond_key(arg))
{
editor_->reset_caret();
API::lazy_refresh();
@@ -145,7 +145,7 @@ namespace drawerbase {
void drawer::key_char(graph_reference, const arg_keyboard& arg)
{
if (editor_->respond_char(arg.key))
if (editor_->respond_char(arg))
API::lazy_refresh();
}