mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-13 08:38:43 +03:00
add cmd-enter as alternate save command
This commit is contained in:
parent
2b7cc47e26
commit
3f31b23500
@ -74,7 +74,12 @@ Edit = query {spur:'t',mime:'m'}, recl
|
||||
|
||||
render: ->
|
||||
{mite,octs} = @props.mime
|
||||
rele codemirror, {value:octs, mode:mite, readOnly:false, autofocus:true}
|
||||
rele codemirror,
|
||||
value:octs
|
||||
mode:mite
|
||||
readOnly:false
|
||||
autofocus:true
|
||||
extraKeys:'Cmd-Enter':@doneEditing
|
||||
|
||||
Add = query {spur:'t',path:'t'}, recl
|
||||
displayName: "Add"
|
||||
|
@ -579,7 +579,10 @@ Edit = query({
|
||||
value: octs,
|
||||
mode: mite,
|
||||
readOnly: false,
|
||||
autofocus: true
|
||||
autofocus: true,
|
||||
extraKeys: {
|
||||
'Cmd-Enter': this.doneEditing
|
||||
}
|
||||
});
|
||||
}
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user