… | |
… | |
260 | bool |
260 | bool |
261 | keyboard_manager::dispatch (rxvt_term *term, KeySym keysym, unsigned int state) |
261 | keyboard_manager::dispatch (rxvt_term *term, KeySym keysym, unsigned int state) |
262 | { |
262 | { |
263 | assert (hash[0] == 0 && "register_done() need to be called"); |
263 | assert (hash[0] == 0 && "register_done() need to be called"); |
264 | |
264 | |
|
|
265 | state &= OtherModMask; // mask out uninteresting modifiers |
|
|
266 | |
265 | if (state & term->ModMetaMask) state |= MetaMask; |
267 | if (state & term->ModMetaMask) state |= MetaMask; |
266 | if (state & term->ModNumLockMask) state |= NumLockMask; |
268 | if (state & term->ModNumLockMask) state |= NumLockMask; |
267 | if (state & term->ModLevel3Mask) state |= Level3Mask; |
269 | if (state & term->ModLevel3Mask) state |= Level3Mask; |
268 | |
270 | |
269 | if (!!(term->priv_modes & PrivMode_aplKP) != !!(state & ShiftMask)) |
271 | if (!!(term->priv_modes & PrivMode_aplKP) != !!(state & ShiftMask)) |