apis/nucleus/dist/nucleus.dev.js
/**
   * Keep track of our keyboard modality state with `hadKeyboardEvent`.
   * If the most recent user interaction was via the keyboard;
   * and the key press did not include a meta, alt/option, or control key;
   * then the modality is keyboard. Otherwise, the modality is not keyboard.
   * @param {KeyboardEvent} event
   */
Keep track of our keyboard modality state with `hadKeyboardEvent`.
If the most recent user interaction was via the keyboard;
and the key press did not include a meta, alt/option, or control key;
then the modality is keyboard. Otherwise, the modality is not keyboard.
Keep track of our keyboard modality state with ` hadKeyboardEvent ` . If the most recent user interaction was via the keyboard ; and the key press did not include a meta alt / option or control key ; then the modality is keyboard . Otherwise the modality is not keyboard .
function handleKeyDown(event) {
    if (event.metaKey || event.altKey || event.ctrlKey) {
      return;
    }
    hadKeyboardEvent = true;
  }
function handleKeyDown ( event ) { if ( event . metaKey || event . altKey || event . ctrlKey ) { return ; } hadKeyboardEvent = true ; }
Keep track of our keyboard modality state with `hadKeyboardEvent`.
Keep track of our keyboard modality state with ` hadKeyboardEvent ` .