UNPKG

@inkline/inkline

Version:

Inkline is the intuitive UI Components library that gives you a developer-friendly foundation for building high-quality, accessible, and customizable Vue.js 3 Design Systems.

19 lines (18 loc) 500 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OverlayPlugin = void 0; var _utils = require("@grozav/utils"); var _controllers = require("@inkline/inkline/controllers"); const OverlayPlugin = exports.OverlayPlugin = { install: () => { if (typeof window !== "undefined") { window.addEventListener("keydown", e => { if ((0, _utils.isKey)("esc", e)) { _controllers.OverlayController.onPressEscape(); } }); } } };