latin-language-toolkit/arethusa — pull request #291 by LFDM (2014-07-25 08:32:01+00:00)
Title: More default configuration 1

Works on #50

Start of a series of minor Pull Requests that will provide more default configuration.

`configurator` now looks for a `defaultConf` property in services, that make use of `configurator.getConfAndDelegate`. This property is optional, but can be used to declare sane default settings for plugins.

Also defines many more keyCapture default keys. This is useful, but also a concern somehow. Not easy to find out if a key binding has been declared twice. The `keyCapture` service can handle this just fine, it's probably just not what someone expects when defining keybindings. Need a mechanism that at least notifies the user/developer when something is set twice, so that he can make changes, if he wants to.

A running application would quickly detect this, as `keyCapture` collects all keybindings - however finding all default keys in the code is more of a challenge, as they are defined in many different places.