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

Method CloneCurrentInputState

cpp/iedriver/InputManager.cpp:254–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254InputState InputManager::CloneCurrentInputState(void) {
255 InputState current_input_state;
256 current_input_state.is_alt_pressed = this->current_input_state_.is_alt_pressed;
257 current_input_state.is_control_pressed = this->current_input_state_.is_control_pressed;
258 current_input_state.is_shift_pressed = this->current_input_state_.is_shift_pressed;
259 current_input_state.is_meta_pressed = this->current_input_state_.is_meta_pressed;
260 current_input_state.is_left_button_pressed = this->current_input_state_.is_left_button_pressed;
261 current_input_state.is_right_button_pressed = this->current_input_state_.is_right_button_pressed;
262 current_input_state.mouse_x = this->current_input_state_.mouse_x;
263 current_input_state.mouse_y = this->current_input_state_.mouse_y;
264 current_input_state.error_info = this->current_input_state_.error_info;
265 return current_input_state;
266}
267
268void InputManager::Reset(BrowserHandle browser_wrapper) {
269 LOG(TRACE) << "Entering InputManager::Reset";

Callers 2

PerformInputSequenceMethod · 0.95
ResetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected