MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / IsModifierKey

Method IsModifierKey

cpp/webdriver-interactions/interactions_linux.cpp:251–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251bool KeypressEventsHandler::IsModifierKey(wchar_t key)
252{
253 bool is_modifier = false;
254 guint gdk_key_sym = translate_code_to_gdk_symbol(key);
255 for (list<XModifierKey>::iterator it = modifiers_.begin();
256 it != modifiers_.end(); ++it) {
257 is_modifier |= it->KeyMatches(gdk_key_sym);
258 }
259
260 return is_modifier;
261}
262
263bool KeypressEventsHandler::IsModifierSet(guint gdk_key)
264{

Callers

nothing calls this directly

Calls 3

endMethod · 0.80
KeyMatchesMethod · 0.80

Tested by

no test coverage detected