From 5d788c5c841fceaebf8e413b95d53cacdcc0dcc9 Mon Sep 17 00:00:00 2001 From: jahorton Date: Tue, 7 Apr 2020 08:47:41 +0700 Subject: [PATCH] change(web): better DOM-default-output namespace use --- web/source/dom/domDefaultOutput.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/source/dom/domDefaultOutput.ts b/web/source/dom/domDefaultOutput.ts index 698afd646d..bf1988337a 100644 --- a/web/source/dom/domDefaultOutput.ts +++ b/web/source/dom/domDefaultOutput.ts @@ -1,4 +1,10 @@ -namespace com.keyman.text { +namespace com.keyman.dom { + // Basically, these are shorthand imports, only viewable within this file. + let DefaultOutput = text.DefaultOutput; + let Codes = text.Codes; + type KeyEvent = text.KeyEvent; + + // Now for some classic JS method "extension". let coreIsCommand = DefaultOutput.isCommand; let coreApplyCommand = DefaultOutput.applyCommand;