MCPcopy Create free account
hub / github.com/KDE/kwin / key

Method key

src/inputmethod.cpp:714–729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

712}
713
714void InputMethod::key(quint32 /*serial*/, quint32 time, quint32 keyCode, KeyboardKeyState state)
715{
716 if (!input()->keyboard()) {
717 return;
718 }
719 if (effects && effects->hasKeyboardGrab()) {
720 Xkb *xkb = input()->keyboard()->xkb();
721 const xkb_keysym_t keySym = xkb->toKeysym(keyCode);
722 forwardKeyToEffects(state, keyCode, keySym);
723 return;
724 }
725
726 waylandServer()->seat()->notifyKeyboardKey(keyCode,
727 state,
728 waylandServer()->display()->nextSerial());
729}
730
731void InputMethod::modifiers(quint32 serial, quint32 mods_depressed, quint32 mods_latched, quint32 mods_locked, quint32 group)
732{

Callers 15

mainFunction · 0.45
testEventMethod · 0.45
testGrabkeyboardMethod · 0.45
qtMouseButtonToButtonFunction · 0.45
chooseFormatFunction · 0.45
outputsConfigFunction · 0.45
keyPressEventMethod · 0.45
iconGeometryMethod · 0.45
handleByCallbackMethod · 0.45
recreateEdgesMethod · 0.45
updateButtonMethod · 0.45
VirtualDesktopPolicyMethod · 0.45

Calls 10

inputFunction · 0.85
waylandServerFunction · 0.85
hasKeyboardGrabMethod · 0.80
xkbMethod · 0.80
toKeysymMethod · 0.80
notifyKeyboardKeyMethod · 0.80
nextSerialMethod · 0.80
keyboardMethod · 0.45
seatMethod · 0.45
displayMethod · 0.45

Tested by 3

testEventMethod · 0.36
testGrabkeyboardMethod · 0.36
keyPressEventMethod · 0.36