Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Platform

The namespace for platform related utilities.

Index

Variables

Functions

Variables

Const IS_EDGE

IS_EDGE: boolean = /Edge/.test(navigator.userAgent)

A flag indicating whether the browser is Edge.

Const IS_IE

IS_IE: boolean = /Trident/.test(navigator.userAgent)

A flag indicating whether the browser is IE.

Const IS_MAC

IS_MAC: boolean = !!navigator.platform.match(/Mac/i)

A flag indicating whether the platform is Mac.

Const IS_WIN

IS_WIN: boolean = !!navigator.platform.match(/Win/i)

A flag indicating whether the platform is Windows.

Functions

accelKey

  • accelKey(event: KeyboardEvent | MouseEvent): boolean
  • Test whether the accel key is pressed.

    Parameters

    • event: KeyboardEvent | MouseEvent

      The keyboard or mouse event of interest.

    Returns boolean

    Whether the accel key is pressed.

    Notes

    On Mac the accel key is the command key. On all other platforms the accel key is the control key.

Generated using TypeDoc