fix #IMEE1 动态输入框捕获了Ctrl导致无法旋转视图

pull/106/MERGE
ChenX 6 years ago
parent c55a2efb4d
commit bcc52a08b3

@ -68,7 +68,8 @@ export class InputHint extends React.Component<InputHintProps, InputHitState>
{ {
end(app.m_Editor.m_KeyCtrl, app.m_Editor.m_KeyCtrl.OnKeyDown, (e: KeyboardEvent) => end(app.m_Editor.m_KeyCtrl, app.m_Editor.m_KeyCtrl.OnKeyDown, (e: KeyboardEvent) =>
{ {
if (document.activeElement !== this.m_InputEl) //@ts-ignore
if (document.activeElement !== this.m_InputEl && e.target.nodeName !== "INPUT")
{ {
this.m_InputEl.focus(); this.m_InputEl.focus();
} }

@ -90,7 +90,8 @@ export class DynamicInput
case KeyBoard.Comma: case KeyBoard.Comma:
e.preventDefault(); e.preventDefault();
return; return;
case KeyBoard.Control:
return;
//shift + 2 =>@ 切换成相对模式 //shift + 2 =>@ 切换成相对模式
case KeyBoard.Shift: case KeyBoard.Shift:
this.isShiftDown = true; this.isShiftDown = true;

Loading…
Cancel
Save