diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2019-07-27 16:40:26 -0400 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-07-27 16:40:26 -0400 |
commit | a75494ad339b656242dab033f86cbeb13dc882b8 (patch) | |
tree | 060976e1ed80f97f90ad83a4b1821b79046b786d /src/client/views/EditableView.tsx | |
parent | d009df0c7142c04947193fb5670974017919bd05 (diff) | |
parent | 7f8281ca3b6fdbda7dae624bcad307d3ccdcac7b (diff) |
Merged with master
Diffstat (limited to 'src/client/views/EditableView.tsx')
-rw-r--r-- | src/client/views/EditableView.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/views/EditableView.tsx b/src/client/views/EditableView.tsx index c66a92f48..7cabebddd 100644 --- a/src/client/views/EditableView.tsx +++ b/src/client/views/EditableView.tsx @@ -50,8 +50,10 @@ export class EditableView extends React.Component<EditableProps> { @action onKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => { if (e.key === "Tab") { + e.stopPropagation(); this.props.OnTab && this.props.OnTab(); } else if (e.key === "Enter") { + e.stopPropagation(); if (!e.ctrlKey) { if (this.props.SetValue(e.currentTarget.value, e.shiftKey)) { this._editing = false; @@ -61,6 +63,7 @@ export class EditableView extends React.Component<EditableProps> { this._editing = false; } } else if (e.key === "Escape") { + e.stopPropagation(); this._editing = false; } } |