# KeymapService specification

**URL:** <https://discourse.joplinapp.org/t/keymapservice-specification/10726>\
**Category:** GSoC - Shortcut Project\
**Created:** [27 August 2020 22:04 UTC](https://discourse.joplinapp.org/t/keymapservice-specification/10726 "2020-08-27T22:04:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anjulalk](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@anjulalk](https://discourse.joplinapp.org/u/anjulalk)\
**Post date:** [27 August 2020 22:04 UTC](https://discourse.joplinapp.org/t/keymapservice-specification/10726/1 "2020-08-27T22:04:18Z")

</div>

Below are the list of features supported by KeymapService.

### Provide seperate keymaps for each platform

It should be possible to have seperate default keymaps for each platform.  
By having seperate keymaps, each keymap layout can theoriticaly be fine-tuned so that it feels familiar with that environment.

### Allow overriding the default keymap

It should be possible to,

- Change a keyboard shortcut
- Disable a keyboard shortcut
- Reset a keyboard shortcut to its default value

### Remember the changes

It should be possible to synchronize the changes with a file on the disk, so that the changes are saved.

### Validate keymap configuration

It shouldn’t be possible to,

- Have invalid keyboard shortcuts
- Have invalid command names
- Have the same keyboard shortcut for two or more different commands
- Have two different keyboard shortcuts for the same command

---

<div class="post-metadata">

**Author:** ![laurent](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@laurent](https://discourse.joplinapp.org/u/laurent)\
**Post date:** [29 August 2020 09:06 UTC](https://discourse.joplinapp.org/t/keymapservice-specification/10726/2 "2020-08-29T09:06:24Z")

</div>

Thanks for the information @anjulalk. Regarding this action:

> [@anjulalk](#):
>
> - Disable a keyboard shortcut

Please could you clarify how to perform this action with your current UI? Is there a test to cover this particular case?

---

<div class="post-metadata">

**Author:** ![anjulalk](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@anjulalk](https://discourse.joplinapp.org/u/anjulalk)\
**Post date:** [30 August 2020 18:53 UTC](https://discourse.joplinapp.org/t/keymapservice-specification/10726/3 "2020-08-30T18:53:36Z")

</div>

To disable a shortcut, the user should first click on the current shortcut to open the shortcut recorder, and then clear the shortcut in the editor. Pressing either the `Delete` or `Backspace` key will clear it. After clearing the shortcut, performing a save by clicking on **Save** button or hit `Enter` key will disable the shortcut.

If this approach is not appropriate please let me know and I’ll change it. Thanks!

---

<div class="post-metadata">

**Author:** ![ServeMark](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/servemark/32/17644_2.png) [@ServeMark](https://discourse.joplinapp.org/u/ServeMark)\
**Post date:** [3 August 2021 03:58 UTC](https://discourse.joplinapp.org/t/keymapservice-specification/10726/4 "2021-08-03T03:58:55Z")

</div>

Apologies if I'm un-informed on this, although I've ready most posts on this topic.  
_Is there a comprehensive document on how to install and manage Keyboard Shortcuts?_

My goal is to have shortcuts to insert a Horizontal Line, or change text to H1/H2/H3 without having to use the toolbar.
