In this article we will explore User talk:GregU/hotkeys.js from different perspectives, with the aim of offering a complete and enriching analysis of this topic. We will delve into its origins, evolution and relevance today, as well as its possible implications and applications in various fields. Through research and reflection, we seek to provide the reader with a broad and detailed vision of User talk:GregU/hotkeys.js, inviting them to immerse themselves in its study and understanding from different angles. Without a doubt, this is an extremely interesting and constantly developing topic, from which countless reflections and interpretations will emerge that will enrich our understanding of it.
This user script allows you to use "hotkeys" to enter certain hard-to-type characters or commonly used phrases in text boxes. It was originally written to allow easily entering the right-arrow (→) into the edit summary field, as this character is especially useful in edit summaries and is hard to enter. Now simply typing Ctrl > produces the arrow. Later, the script was updated to allow using the same hotkeys in the main edit field.
To install this script, just add something like the following to your personal JavaScript page. This also defines some custom hotkeys to augment and override the defaults, but that part is optional.
importScript("User:GregU/hotkeys.js");
hotkeys = {
'b' : 'Brooks was here',
'l' : '',
's' : '§',
't' : '{| class="wikitable"\n! header\n! header\n|-\n| data\n| data\n|}\n'
}
This sets Ctrl-B to enter "Brooks was here", the default Ctrl-L hotkey is disabled (reverting back to the default Firefox behavior), Ctrl-S enters the section symbol, and Ctrl-T enters a table skeleton.
If you forget what hotkeys are defined, type Ctrl ? to list them all.
This script no longer loads correctly, here is an updated version that works. – Thjarkur (talk) 21:15, 17 September 2020 (UTC)
e keys (e.g., r), both Altand Alt+⇧ Shift work; For other keys (e.g. f), only Alt+⇧ Shift works; For other keys (e.g. .), only Alt works.
in some versions you may then need to press ↵ Enter
2603:8081:5F00:7645:ACED:7F18:5656:8ABD (talk) 06:52, 4 April 2023 (UTC)