Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:SeleniumHQ Selenium Closure KeyCodes

From Leeroopedia
Knowledge Sources
Domains JavaScript_Atoms, Vendored_Library
Last Updated 2026-02-12 00:00 GMT

Overview

Vendored Google Closure Library module providing constant declarations for common keyboard key codes, used by Selenium JavaScript atoms.

Description

goog.events.KeyCodes is a vendored copy of the Google Closure Library module. It provides an enumeration of key codes for common characters including modifier keys (SHIFT, CTRL, ALT), navigation keys (arrows, PAGE_UP, PAGE_DOWN, HOME, END), function keys, alphanumeric keys, and special characters. The list is not localized and some key codes may not be correct for non-US keyboard layouts. It also includes browser-specific variants such as FF_SEMICOLON and FF_EQUALS for Firefox. Selenium uses this as part of its JavaScript atom infrastructure for browser automation commands.

Usage

This module is consumed internally by Selenium's JavaScript atoms build system. It is not imported directly by end users.

Code Reference

Source Location

Key Exports

goog.provide('goog.events.KeyCodes');

// Enum: goog.events.KeyCodes
// Key constants include: BACKSPACE, TAB, ENTER, SHIFT, CTRL, ALT, ESC, SPACE,
// PAGE_UP, PAGE_DOWN, END, HOME, LEFT, UP, RIGHT, DOWN, INSERT, DELETE,
// ZERO-NINE, A-Z, F1-F12, NUM_ZERO-NUM_NINE, and browser-specific variants.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment