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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user