mirror of
https://github.com/urbit/shrub.git
synced 2024-12-18 15:55:00 +03:00
publish: submit comment on ctrl+enter
This commit is contained in:
parent
7b98e6a838
commit
7a796549bd
@ -116,7 +116,13 @@ export class Comments extends Component {
|
||||
"b--gray2-d mb2 focus-b--black focus-b--white-d white-d bg-gray0-d"}
|
||||
aria-describedby="comment-desc"
|
||||
style={{height: "4rem"}}
|
||||
onChange={this.commentChange}>
|
||||
onChange={this.commentChange}
|
||||
onKeyPress={(e) => {
|
||||
if ((e.getModifierState("Control") || event.getModifierState("Meta"))
|
||||
&& e.key === "Enter") {
|
||||
this.commentSubmit();
|
||||
}
|
||||
}}>
|
||||
</textarea>
|
||||
</div>
|
||||
<button disabled={disableComment}
|
||||
|
Loading…
Reference in New Issue
Block a user