From 32152cc4cbf15b9d7077f51f4de2e4d4e80a25f6 Mon Sep 17 00:00:00 2001 From: arnoudkooi Date: Tue, 21 May 2024 20:26:16 +0200 Subject: [PATCH] Change Shortcut BG script --- CHANGELOG.md | 4 ++++ js/bgscript.js | 4 ++-- js/bgscriptmodern.js | 4 ++-- manifest.json | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fc6c2e..86e381b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG.md +## 8.1.0.1 (2024-05-20) +Fixes / changes: + - Change background script execute shortcut to CMD-SHIFT-Enter to prevent conflict with Now Assist + ## 8.1.0.0 (2024-05-20) Features: - On clasic forms with attatchments, you can now click [⌕] This opens a modal with a list of the attachments, and it tries to show the preview of the attachment. diff --git a/js/bgscript.js b/js/bgscript.js index abfe379..df25c70 100644 --- a/js/bgscript.js +++ b/js/bgscript.js @@ -6,7 +6,7 @@ let snuLoadedResult = ''; let div = document.createElement('div'); let divInfo = document.createElement('div'); top.document.title ="⚪ BG script not started" -divInfo.innerText = 'CTRL/CMD Enter to Execute | Slashcommand /bg to open this page | Editor and shortcut added by SN Utils'; +divInfo.innerText = 'CTRL/CMD SHIFT Enter to Execute | Slashcommand /bg to open this page | Editor and shortcut added by SN Utils'; divInfo.style.fontSize = '9pt'; divInfo.style.fontFamily = 'SourceSansPro, "Helvetica Neue", Arial'; let scrpt = document.getElementById('runscript'); @@ -81,7 +81,7 @@ if (snusettings.applybgseditor && scrpt) { editor.addAction({ id: "runScript", label: "Run script", - keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.Enter], + keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyMod.Shift | monaco.KeyCode.Enter], contextMenuGroupId: "2_execution", precondition: blockContext, run: () => { diff --git a/js/bgscriptmodern.js b/js/bgscriptmodern.js index bd68f29..82a9c72 100644 --- a/js/bgscriptmodern.js +++ b/js/bgscriptmodern.js @@ -3,7 +3,7 @@ let snuEditor; let snuDiv = document.createElement('div'); let snuDivInfo = document.createElement('div'); top.document.title = "⚪ BG script not started" -snuDivInfo.innerText = 'CTRL/CMD Enter to Execute | Slashcommand /bgm to open this page | Shortcut and split screen added by SN Utils | '; +snuDivInfo.innerText = 'CTRL/CMD SHIFT Enter to Execute | Slashcommand /bgm to open this page | Shortcut and split screen added by SN Utils | '; snuDivInfo.style.fontSize = '9pt'; snuDivInfo.style.fontFamily = 'SourceSansPro, "Helvetica Neue", Arial'; let snuScript = document.querySelector('div.script-container'); @@ -171,7 +171,7 @@ function snuEnhanceMonaco() { snuEditor.addAction({ id: "runScript", label: "Run script", - keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.Enter], + keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyMod.Shift | monaco.KeyCode.Enter], contextMenuGroupId: "2_info", precondition: blockContext, run: () => { diff --git a/manifest.json b/manifest.json index 75a6b29..d3bbea9 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "short_name": "SN Utils", "description": "Productivity tools for ServiceNow. (Personal work, not affiliated to ServiceNow)", "author": "Arnoud Kooi / arnoudkooi.com", - "version": "8.1.0.0", + "version": "8.1.0.1", "manifest_version": 3, "permissions": [ "activeTab",