mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-16 05:38:41 -09:00
Make quickEdit true by default on Windows
This commit is contained in:
parent
6cda6cad96
commit
6842e8500a
2 changed files with 7 additions and 4 deletions
|
|
@ -79,11 +79,11 @@ module.exports = {
|
||||||
bell: 'SOUND',
|
bell: 'SOUND',
|
||||||
|
|
||||||
// if true, selected text will automatically be copied to the clipboard
|
// if true, selected text will automatically be copied to the clipboard
|
||||||
copyOnSelect: false,
|
copyOnSelect: false
|
||||||
|
|
||||||
// if true, on right click selected text will be copied or pasted if no
|
// if true, on right click selected text will be copied or pasted if no
|
||||||
// selection is present
|
// selection is present (true by default on Windows)
|
||||||
quickEdit: false
|
// quickEdit: true
|
||||||
|
|
||||||
// URL to custom bell
|
// URL to custom bell
|
||||||
// bellSoundURL: 'http://example.com/bell.mp3',
|
// bellSoundURL: 'http://example.com/bell.mp3',
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,10 @@ const reducer = (state = initial, action) => {
|
||||||
ret.showWindowControls = config.showWindowControls;
|
ret.showWindowControls = config.showWindowControls;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof (config.quickEdit) !== 'undefined' &&
|
if (process.platform === 'win32' &&
|
||||||
|
(config.quickEdit === undefined || config.quickEdit === null)) {
|
||||||
|
ret.quickEdit = true;
|
||||||
|
} else if (typeof (config.quickEdit) !== 'undefined' &&
|
||||||
config.quickEdit !== null) {
|
config.quickEdit !== null) {
|
||||||
ret.quickEdit = config.quickEdit;
|
ret.quickEdit = config.quickEdit;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue