Mark Roethof
Tera Patron
Tera Patron

Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

 

What is shared in this article, might not be best practice. Just sharing this to explore possibilities, find openings in ServiceNow, and have a mindset that your imagination is your limitation.

 

Hi all,

 

Almost two months ago I published an article on the new Washington DC release keyboard shortcuts. Without any doubt a useful addition. With some keyboard shortcuts I do feel a bit ackword, like several SN Utils features being kidnapped by ServiceNow. Especially when it comes to the SN Utils slash command!

 

Oke... this article is probably horribly unsupported, though just for fun and playing around I noticed these three new tables being added with the Washington DC release:

- sys_ux_keyboard_shortcut
- sys_ux_keyboard_shortcut_definition
- sys_ux_keyboard_shortcut_deny_list

 

Their names already look suspiciously interesting...

 

Perhaps in a later stadium, I will have a look if we can add keyboard shortcuts ourselves. Though for now... getting rid of the kidnapped SN Utils slash command!


UX Keyboard Shortcuts [sys_ux_keyboard_shortcut]

Browsing the new UX Keyboard Shortcuts table, in the List View you will immediately notice the "Shortcut" column containing the actual keyboard shortcuts. And browsing through the list of records, an interesting record called "View all keyboard shortcuts on page" can be found.

 

And there we have it... the kidnapper of the SN Utils slash command!

 

01.png

 

Let's just update this keyboard shortcut, instead of ctrlKey let's use altKey, using SN Utils CTRL+S to save, logout, login, test the SN Utils slash command...

 

(You do need to add the admin role to the existing write ACL, or add a new write ACL, or set admin overrides to true on the existing write ACL)

 

YES! The new Washington Keyboard shortcuts popup does not interfere anymore with SN Utils! Don't touch the SN Utils slash command 😁.

 

If you just want to disable all the out-of-the-box Keyboard shortcuts, there's a User Preference for that: "glide.ui.keyboard.shortcuts.enabled".

---

 

As mentioned this article is probably horribly unsupported, though just for fun and playing around 😀.

 

 

C

If this content helped you, I would appreciate it if you hit bookmark or mark it as helpful.

 

Interested in more Articles, Blogs, Videos, Podcasts, Share projects I shared/participated in?
- Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

 

Kind regards,


Mark Roethof

Independent ServiceNow Consultant
9x ServiceNow MVP

---

LinkedIn

 

Comments
Maik Skoddow
Tera Patron
Tera Patron

Hi @Mark Roethof 

The issue you are describing seems to be dependent on the used keyboard layout. I have a German keyboard layout and the SNUtils slash command is not kidnapped on a Washington instance.

Instead the Ctrl+Shift+/ shortcut of ServiceNow is now blocking Ctrl+- (Browser zoom out).

Mark Roethof
Tera Patron
Tera Patron

@Maik Skoddow Luckily the number of users with German keyboard layout will be small 😁 No just joking, good addition! This could be the case of course for some other keyboard layouts also.

 

Do provide such input also to the SN Utils slack channel if you think it is an issue, perhaps something can be done about it.

Arnoud Kooi
ServiceNow Employee
ServiceNow Employee

Great article 🙂

Note that there is now a setting to reclaim this shortcut. 
If you enable that a second trigger will still show the shortcuts overview.

ArnoudKooi_0-1712617020775.png

 

slashprio.gif

 

 

Kingstan M
Kilo Sage

@Arnoud Kooi - I can see the background script is mess now with WashingtonDC. It is missing the SN Util functionality of VS code support. How I bypass this?

WashingtonDC

WashingtonDC.png

Before WashingtonDC

Before WashingtonDC.png

Arnoud Kooi
ServiceNow Employee
ServiceNow Employee

If you see this issue even with SN Utils disabled, I would create a support case.

Otherwise, provide me more details.

 

If you want to prevent redirect to the sys.script.modern.do page, you can paste this code in the console:

 

localStorage.setItem("snufamily",JSON.stringify({"family":"dontredirect","checked":"2024-04-09", "override" : true}));

 

Charlesblett
Kilo Contributor

I have a SPANISH keyboard, running under IOS

As a result, the keyboard shortcuts are HORRIBLE!

For example, CMD + makes my screen ZOOM IN, but CMD - does not ZOOM OUT; rather it shows me a list of USELESS keyboard shortcuts that also do not work (for example, the slash key is Shift + 7)

How can I change the key settings on my ServiceNow instance?

 

adrian08
Tera Contributor

@Arnoud Kooi  to add, you have to enter that in your console while in the sys.scripts.modern.po page in our instance, then refresh the page.

Version history
Last update:
‎07-26-2024 07:48 AM
Updated by:
Contributors