keydown event fixed
This commit is contained in:
1 parent
514f010e5a
commit
f75895bfa5
2 files changed
+7
-1
No files matched your search
@@ -1,6 +1,7 @@
|
||||
function newSuperalgosDocSpace() {
|
||||
const MODULE_NAME = 'Doc Space'
|
||||
let thisObject = {
|
||||
isVisible: undefined,
|
||||
sidePanelTab: undefined,
|
||||
container: undefined,
|
||||
openSpaceAreaAndNavigateTo: openSpaceAreaAndNavigateTo,
|
||||
@@ -576,7 +577,7 @@ function newSuperalgosDocSpace() {
|
||||
}
|
||||
|
||||
function onOpening() {
|
||||
|
||||
thisObject.isVisible = true
|
||||
if (objectBeingRendered === undefined) {
|
||||
renderSearchPage()
|
||||
} else {
|
||||
@@ -784,6 +785,7 @@ function newSuperalgosDocSpace() {
|
||||
|
||||
function onClosing() {
|
||||
objectBeingRendered = undefined
|
||||
thisObject.isVisible = false
|
||||
}
|
||||
|
||||
function renderSearchPage() {
|
||||
|
||||
@@ -375,6 +375,10 @@ function newCanvas() {
|
||||
window.editorController.onKeyDown(event)
|
||||
return
|
||||
}
|
||||
/* When the Docs is Visible, we do not process key down events of the Designer Space. */
|
||||
if (UI.projects.superalgos.spaces.docsSpace.isVisible === true) {
|
||||
return
|
||||
}
|
||||
thisObject.mouse.event = event
|
||||
thisObject.mouse.action = 'key down'
|
||||
|
||||
|
||||
Reference in new issue
Block a user