Added keyboard shortcut for exit button, and added the option to the settings.ts file.

This commit is contained in:
harshil05133 2025-02-17 02:13:02 -05:00
parent 2540c2a685
commit 1e5b302a79
4 changed files with 8 additions and 3 deletions

View file

@ -290,6 +290,7 @@
"cmdShiftC": "${PAD_SHORTCUTS_ENABLED_CMD_SHIFT_C:true}", /* clear authorship */ "cmdShiftC": "${PAD_SHORTCUTS_ENABLED_CMD_SHIFT_C:true}", /* clear authorship */
"cmdH": "${PAD_SHORTCUTS_ENABLED_CMD_H:true}", /* backspace */ "cmdH": "${PAD_SHORTCUTS_ENABLED_CMD_H:true}", /* backspace */
"ctrlHome": "${PAD_SHORTCUTS_ENABLED_CTRL_HOME:true}", /* scroll to top of pad */ "ctrlHome": "${PAD_SHORTCUTS_ENABLED_CTRL_HOME:true}", /* scroll to top of pad */
"cmdEsc": "${PAD_SHORTCUTS_ENABLED_CMD_ESC:true}", /* Exit pad and go back to home */
"pageUp": "${PAD_SHORTCUTS_ENABLED_PAGE_UP:true}", "pageUp": "${PAD_SHORTCUTS_ENABLED_PAGE_UP:true}",
"pageDown": "${PAD_SHORTCUTS_ENABLED_PAGE_DOWN:true}" "pageDown": "${PAD_SHORTCUTS_ENABLED_PAGE_DOWN:true}"
}, },
@ -643,7 +644,7 @@
"right": [ "right": [
["importexport", "timeslider", "savedrevision"], ["importexport", "timeslider", "savedrevision"],
["settings", "embed"], ["settings", "embed"],
["showusers", "home"] ["showusers", "gohome"]
], ],
"timeslider": [ "timeslider": [
["timeslider_export", "timeslider_returnToPad"] ["timeslider_export", "timeslider_returnToPad"]

View file

@ -275,6 +275,7 @@
"cmdShiftC": true, /* clear authorship */ "cmdShiftC": true, /* clear authorship */
"cmdH": true, /* backspace */ "cmdH": true, /* backspace */
"ctrlHome": true, /* scroll to top of pad */ "ctrlHome": true, /* scroll to top of pad */
"cmdEsc": true, /* Exit pad and go back to home */
"pageUp": true, "pageUp": true,
"pageDown": true "pageDown": true
}, },
@ -642,7 +643,7 @@
"right": [ "right": [
["importexport", "timeslider", "savedrevision"], ["importexport", "timeslider", "savedrevision"],
["settings", "embed"], ["settings", "embed"],
["showusers", "home"] ["showusers", "gohome"]
], ],
"timeslider": [ "timeslider": [
["timeslider_export", "timeslider_returnToPad"] ["timeslider_export", "timeslider_returnToPad"]

View file

@ -54,6 +54,8 @@
"pad.toolbar.settings.title": "Settings", "pad.toolbar.settings.title": "Settings",
"pad.toolbar.embed.title": "Share and Embed this pad", "pad.toolbar.embed.title": "Share and Embed this pad",
"pad.toolbar.showusers.title": "Show the users on this pad", "pad.toolbar.showusers.title": "Show the users on this pad",
"pad.toolbar.gohome.title": "Go back to home page",
"pad.colorpicker.save": "Save", "pad.colorpicker.save": "Save",
"pad.colorpicker.cancel": "Cancel", "pad.colorpicker.cancel": "Cancel",

View file

@ -229,6 +229,7 @@ exports.padShortcutEnabled = {
cmdShiftC: true, cmdShiftC: true,
cmdH: true, cmdH: true,
ctrlHome: true, ctrlHome: true,
cmdEsc: true,
pageUp: true, pageUp: true,
pageDown: true, pageDown: true,
}; };
@ -246,7 +247,7 @@ exports.toolbar = {
right: [ right: [
['importexport', 'timeslider', 'savedrevision'], ['importexport', 'timeslider', 'savedrevision'],
['settings', 'embed'], ['settings', 'embed'],
['showusers'], ['showusers', 'gohome'],
], ],
timeslider: [ timeslider: [
['timeslider_export', 'timeslider_settings', 'timeslider_returnToPad'], ['timeslider_export', 'timeslider_settings', 'timeslider_returnToPad'],