add member alt for arg_keyboard

This commit is contained in:
Jinhao
2018-02-24 06:10:43 +08:00
parent 2ba4b612f1
commit 244416088f
3 changed files with 6 additions and 3 deletions

View File

@@ -223,6 +223,7 @@ namespace detail
{
XKeyEvent xkey;
nana::detail::platform_spec::instance().read_keystate(xkey);
arg.alt = (xkey.state & Mod1Mask);
arg.ctrl = (xkey.state & ControlMask);
arg.shift = (xkey.state & ShiftMask);
}