diff options
author | bob <bcz@cs.brown.edu> | 2019-11-26 14:34:41 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-11-26 14:34:41 -0500 |
commit | 6cd6e035fc67812afd7a40f8abd0f07f8874f04a (patch) | |
tree | 896eb612a90afa9fea92a5398c021f54094286f5 /src/client/views/EditableView.tsx | |
parent | 4cf3b0a4673a00f0e1de107b29a0c0b658266f46 (diff) |
fixes for tree view drag drop with images.
Diffstat (limited to 'src/client/views/EditableView.tsx')
-rw-r--r-- | src/client/views/EditableView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/EditableView.tsx b/src/client/views/EditableView.tsx index 8e86f58ee..f78b61892 100644 --- a/src/client/views/EditableView.tsx +++ b/src/client/views/EditableView.tsx @@ -21,7 +21,7 @@ export interface EditableProps { OnFillDown?(value: string): void; - OnTab?(): void; + OnTab?(shift?: boolean): void; /** * The contents to render when not editing @@ -79,7 +79,7 @@ export class EditableView extends React.Component<EditableProps> { if (e.key === "Tab") { e.stopPropagation(); this.finalizeEdit(e.currentTarget.value, e.shiftKey); - this.props.OnTab && this.props.OnTab(); + this.props.OnTab && this.props.OnTab(e.shiftKey); } else if (e.key === "Enter") { e.stopPropagation(); if (!e.ctrlKey) { |