MCPcopy Create free account
hub / github.com/deskflow/deskflow / adjustAltGrModifier

Method adjustAltGrModifier

src/lib/platform/OSXKeyState.cpp:897–908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

895}
896
897void OSXKeyState::adjustAltGrModifier(const KeyIDs &ids, KeyModifierMask *mask, bool isCommand) const
898{
899 if (!isCommand) {
900 for (KeyIDs::const_iterator i = ids.begin(); i != ids.end(); ++i) {
901 KeyID id = *i;
902 if (id != kKeyNone && ((id < 0xe000u || id > 0xefffu) || (id >= kKeyKP_Equal && id <= kKeyKP_9))) {
903 *mask |= KeyModifierAltGr;
904 return;
905 }
906 }
907 }
908}
909
910KeyButton OSXKeyState::mapVirtualKeyToKeyButton(uint32_t keyCode)
911{

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected