Sha256: a629d05b7b998012508f88988685779649f4415141e882df439777cd47806cdd

Contents?: true

Size: 373 Bytes

Versions: 2

Compression:

Stored size: 373 Bytes

Contents

const Keycodes = {
  LEFT: 37,
  UP: 38,
  RIGHT: 39,
  DOWN: 40,
  ENTER: 13,
  SPACE: 32,

  get ARROWS() {
    return [this.LEFT, this.RIGHT, this.UP, this.DOWN];
  },
  get NEXT() {
    return [this.RIGHT, this.DOWN];
  },
  get PREVIOUS() {
    return [this.LEFT, this.UP];
  },
  get ACTIVATE() {
    return [this.SPACE, this.ENTER];
  }
};

export default Keycodes;

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
docks_theme_api-1.0.3 source/utilities/keycodes/keycodes.js
docks_theme_api-1.0.2 source/utilities/keycodes/keycodes.js