fix a selection text issue of text_editor with pressing shift

This commit is contained in:
Jinhao
2015-11-16 01:20:59 +08:00
parent d3865fab63
commit a4258d3884
3 changed files with 9 additions and 11 deletions

View File

@@ -596,9 +596,9 @@ namespace detail
case XK_Delete:
keysym = keyboard::os_del; break;
case XK_Shift_L: case XK_Shift_R: //shift
keysym = 0x10; break;
keysym = keyboard::os_shift; break;
case XK_Control_L: case XK_Control_R: //ctrl
keysym = 0x11; break;
keysym = keyboard::os_ctrl; break;
default:
do
{
@@ -1064,7 +1064,7 @@ namespace detail
}
else
{
if(0x11 == os_code)
if(keyboard::os_ctrl == os_code)
context.is_ctrl_pressed = true;
arg_keyboard arg;