Trying to handle the windows key

This commit is contained in:
titiger 2016-11-16 22:34:22 +01:00
parent 1dfe1b8b42
commit 031a9d87ea
1 changed files with 5 additions and 0 deletions

View File

@ -370,6 +370,11 @@ bool Window::handleEvent() {
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s %d] ALT-F4 pressed.\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__);
return false;
}
// handle windows key
if((keyName == "Application" || (event.key.keysym.mod & (KMOD_LGUI | KMOD_LGUI))
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s %d] ALT-F4 pressed.\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__);
return false;
}
#endif
if(global_window) {
//char key = getKey(event.key.keysym,true);