mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-23 07:36:12 +08:00
Convert meta / control to mod only on the correct platforms #1678
This commit is contained in:
parent
8963b14364
commit
ed0270c17e
1 changed files with 5 additions and 1 deletions
|
@ -169,7 +169,11 @@ export default class CommandKeybinding extends React.Component<
|
||||||
let editingBinding = keys.join(' ');
|
let editingBinding = keys.join(' ');
|
||||||
if (modifiers.length > 0) {
|
if (modifiers.length > 0) {
|
||||||
editingBinding = [...modifiers, ...keys].join('+');
|
editingBinding = [...modifiers, ...keys].join('+');
|
||||||
editingBinding = editingBinding.replace(/(meta|command|ctrl)/g, 'mod');
|
if (process.platform === 'darwin') {
|
||||||
|
editingBinding = editingBinding.replace(/meta/g, 'mod');
|
||||||
|
} else {
|
||||||
|
editingBinding = editingBinding.replace(/ctrl/g, 'mod');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setState({ keys, modifiers, editingBinding });
|
this.setState({ keys, modifiers, editingBinding });
|
||||||
|
|
Loading…
Reference in a new issue