MCPcopy Create free account
hub / github.com/jhen0409/react-native-debugger / registerShortcuts

Function registerShortcuts

electron/window.js:58–70  ·  view source on GitHub ↗
(win)

Source from the content-addressed store, hash-verified

56const unregisterKeyboradShortcut = () => globalShortcut.unregisterAll()
57
58const registerShortcuts = async (win) => {
59 registerKeyboradShortcut(win)
60 changeMenuItems({
61 Debugger: {
62 'Stay in Front': {
63 checked: win.isAlwaysOnTop(),
64 },
65 'Enable Open in Editor for Console Log': {
66 checked: await checkIsOpenInEditorEnabled(win),
67 },
68 },
69 })
70}
71
72const minSize = 100
73export const createWindow = ({ iconPath, isPortSettingRequired, port }) => {

Callers 1

createWindowFunction · 0.85

Calls 3

registerKeyboradShortcutFunction · 0.85
changeMenuItemsFunction · 0.85

Tested by

no test coverage detected