--- title: event.ctrlKey slug: Web/API/MouseEvent/ctrlKey tags: - DOM - Wszystkie_kategorie translation_of: Web/API/MouseEvent/ctrlKey translation_of_original: Web/API/event.ctrlKey original_slug: Web/API/Event/ctrlKey ---
{{ ApiRef() }}
Wskazuje, czy klawisz <ctrl> był wciśnięty podczas wywołania zdarzenia.
bool = event.ctrlKey
function goInput(e) {
// sprawdza ctrlKey
if e.ctrlKey
// i przekazuje zdarzenie dalej
superSizeOutput(e);
else
doOutput(e)
{{ languages( { "en": "en/DOM/event.ctrlKey" } ) }}