logo

NJP

Washington DC Keyboard shortcuts... Don't touch SN Utils slash command!

Import · Mar 25, 2024 · article

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 :beaming_face_with_smiling_eyes:.

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 :grinning_face:.

Kind regards,

Mark Roethof

Independent ServiceNow Consultant

9x ServiceNow MVP

---

LinkedIn

View original source

https://www.servicenow.com/community/developer-articles/washington-dc-keyboard-shortcuts-don-t-touch-sn-utils-slash/ta-p/2871802