Added Windows-style mouse double-click to the textbox

- the word under cursor is selected with double-click now
 - tested in both editable and read-only modes

This addresses #226.
This commit is contained in:
Oleg Smolsky
2017-07-12 10:45:04 -07:00
parent 255f5851c6
commit e8755e6283
4 changed files with 59 additions and 14 deletions

View File

@@ -143,6 +143,12 @@ namespace drawerbase {
API::dev::lazy_refresh();
}
void drawer::dbl_click(graph_reference, const arg_mouse& arg)
{
if(editor_->select_word(arg))
API::dev::lazy_refresh();
}
void drawer::key_press(graph_reference, const arg_keyboard& arg)
{
editor_->respond_key(arg);