Re #148 Added traces for debugging non-working zooming commands on an italian keyboard

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3959 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: a97b494a855e21e14f5b176fe8883e81af07e09f
Former-commit-id: 31262517e7ca3c1f37f01fbf49dbb73d4423a9cb
This commit is contained in:
pouillot 2011-10-09 08:07:52 +00:00
parent 71719ba2b7
commit aaefb2e991

View file

@ -95,8 +95,10 @@ int GfEventLoop::Private::translateKeySym(int code, int modifier, int unicode)
// Truncate unicodes above GF_MAX_KEYCODE (no need for more). // Truncate unicodes above GF_MAX_KEYCODE (no need for more).
keyUnicode = unicode ? (unicode & GF_MAX_KEYCODE) : code; keyUnicode = unicode ? (unicode & GF_MAX_KEYCODE) : code;
_mapUnicodes[keyId] = keyUnicode; _mapUnicodes[keyId] = keyUnicode;
//GfLogDebug("translateKeySym(c=%d, m=%d, u=%d) : New key id=0x%08X, unicode=%d (%d)\n", GfLogDebug("translateKeySym(c=%X, m=%X, u=%X) : '%c', id=%X, ucode=%X (nk=%d)\n",
// code, modifier, unicode, keyId, keyUnicode, _mapUnicodes.size()); code, modifier, unicode,
isprint(keyUnicode) ? (char)keyUnicode : ' ',
keyId, keyUnicode, _mapUnicodes.size());
} }
// If found, get the unicode from the map. // If found, get the unicode from the map.