MCPcopy Create free account
hub / github.com/VasylBaran/CommandShift / handleModifierKeysStatusChange

Method handleModifierKeysStatusChange

src/keypresscatcher.cpp:129–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void KeyPressCatcher::handleModifierKeysStatusChange(bool shift_pressed_down, bool second_key_pressed_down)
130{
131 if (m_change_language_on_release)
132 {
133 if (shift_pressed_down && second_key_pressed_down)
134 {
135 m_pending = true;
136 }
137 else if (!shift_pressed_down && m_pending)
138 {
139 sendSystemDefaultChangeLanguageShortcut();
140 m_pending = false;
141 }
142 }
143 else
144 {
145 if (shift_pressed_down && second_key_pressed_down)
146 {
147 sendSystemDefaultChangeLanguageShortcut();
148 }
149 }
150}
151
152bool KeyPressCatcher::init()
153{

Callers 1

initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected