Skip to content

Commit

Permalink
cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
pravdomil committed Feb 21, 2018
1 parent 9f78f44 commit 3c00893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/components/VariableEditor.js
Expand Up @@ -94,7 +94,7 @@ class VariableEditor extends React.Component {
? null
: e => {
let location = [...namespace]
if (e.ctrlKey && onEdit !== false) {
if ((e.ctrlKey || e.metaKey) && onEdit !== false) {
this.prepopInput(variable)
} else if (onSelect !== false) {
location.shift()
Expand Down Expand Up @@ -252,7 +252,7 @@ class VariableEditor extends React.Component {
break
}
case "Enter": {
if (e.ctrlKey) {
if (e.ctrlKey || e.metaKey) {
this.submitEdit(true)
}
break
Expand Down

0 comments on commit 3c00893

Please sign in to comment.