From 9d651759bc8757773d89356ad15dba5566e003e1 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Fri, 8 Sep 2023 02:26:32 +1000 Subject: Added framework for routing keyboard events --- wwwroot/js/dialog.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'wwwroot/js/dialog.js') diff --git a/wwwroot/js/dialog.js b/wwwroot/js/dialog.js index 065014a..418962f 100644 --- a/wwwroot/js/dialog.js +++ b/wwwroot/js/dialog.js @@ -66,3 +66,13 @@ function bumpDialog(element) { for(var d of dialogs) d.style.zIndex = z++; } + +function dialogAddObjectReference(element, dialogObject) { + if(!window.dialogObjects) + window.dialogObjects = [] + + window.dialogObjects.push({ + element: element, + dialogObject: dialogObject + }); +} -- cgit v1.3