Merge branch 'master' into canary

This commit is contained in:
Guillermo Rauch 2017-09-25 15:23:14 +02:00
commit 3293c3b50a
4 changed files with 18 additions and 8 deletions

View file

@ -21,11 +21,11 @@ const _setCommandsForKeys = function(commands_) {
}
};
const _import = function(customsKeys) {
const _import = function(customKeys) {
try {
const mapping = JSON.parse(readFileSync(defaultPlatformKeyPath()));
_setKeysForCommands(mapping);
_setKeysForCommands(customsKeys);
_setKeysForCommands(customKeys);
_setCommandsForKeys(commands);
return {commands, keys};
@ -35,12 +35,12 @@ const _import = function(customsKeys) {
}
};
const _extend = function(customsKeys) {
if (customsKeys) {
for (const command in customsKeys) {
const _extend = function(customKeys) {
if (customKeys) {
for (const command in customKeys) {
if (command) {
commands[command] = normalize(customsKeys[command]);
keys[normalize(customsKeys[command])] = command;
commands[command] = normalize(customKeys[command]);
keys[normalize(customKeys[command])] = command;
}
}
}

View file

@ -36,7 +36,7 @@ const plugs = {
};
const yarn = resolve(__dirname, '../../bin/yarn-standalone.js');
const icon = resolve(__dirname, '../static/icon.png');
const icon = resolve(__dirname, '../static/icon96x96.png');
const keymapPath = resolve(__dirname, '../keymaps');
const darwinKeys = join(keymapPath, 'darwin.json');

BIN
app/static/icon96x96.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View file

@ -724,6 +724,11 @@
</tr>
</thead>
<tbody>
<tr>
<td>"updateChannel"</td>
<td>"stable"</td>
<td>The update channel to receive updates from</td>
</tr>
<tr>
<td>"fontSize"</td>
<td>12</td>
@ -810,6 +815,11 @@
<td>false</td>
<td>If true, selected text will automatically be copied to the clipboard</td>
</tr>
<tr>
<td>"quickEdit"</td>
<td>false</td>
<td>If true, on right click selected text will be copied or pasted if no selection is present (true by default on Windows)</td>
</tr>
<tr>
<td>"bell"</td>
<td>"SOUND"</td>