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

Method InitModifiers

cpp/webdriver-interactions/interactions_linux.cpp:233–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233void KeypressEventsHandler::InitModifiers()
234{
235 if (modifiers_.empty() == false) {
236 modifiers_.clear();
237 }
238
239 modifiers_.push_back(XModifierKey(GDK_Shift_L, GDK_SHIFT_MASK, modifiers_state_));
240 modifiers_.push_back(XModifierKey(GDK_Control_L, GDK_CONTROL_MASK, modifiers_state_));
241 modifiers_.push_back(XModifierKey(GDK_Alt_L, GDK_MOD1_MASK, modifiers_state_));
242}
243
244void KeypressEventsHandler::StoreModifiersState()
245{

Callers

nothing calls this directly

Calls 3

XModifierKeyClass · 0.85
clearMethod · 0.65
emptyMethod · 0.45

Tested by

no test coverage detected