protected internal override void ExecuteDefaultAction(EventBase evt) { base.ExecuteDefaultAction(evt); if (evt.GetEventTypeId() == FocusEvent.TypeId()) m_SetKbControl = true; }
protected override void ExecuteDefaultAction(EventBase evt) { base.ExecuteDefaultAction(evt); if (evt == null) { return; } if (evt.eventTypeId == BlurEvent.TypeId()) { if (string.IsNullOrEmpty(text)) { // Make sure that empty field gets the default value textValueFieldParent.value = default(TValueType); } else { UpdateValueFromText(); } } else if (evt.eventTypeId == FocusEvent.TypeId()) { if (textValueFieldParent.showMixedValue) { textValueFieldParent.value = default(TValueType); } } }
protected internal override void ExecuteDefaultAction(EventBase evt) { base.ExecuteDefaultAction(evt); if (evt.GetEventTypeId() == FocusEvent.TypeId()) { m_ObjectFieldDisplay.Focus(); } }
protected internal override void ExecuteDefaultAction(EventBase evt) { base.ExecuteDefaultAction(evt); // Delegate focus to the control if (evt.GetEventTypeId() == FocusEvent.TypeId()) { m_Control.Focus(); } }
protected internal override void ExecuteDefaultAction(EventBase evt) { base.ExecuteDefaultAction(evt); // Focus first field if any if (evt.GetEventTypeId() == FocusEvent.TypeId() && m_Fields.Count > 0) { m_Fields[0].Focus(); } }
protected internal override void ExecuteDefaultAction(EventBase evt) { base.ExecuteDefaultAction(evt); // Focus first field if any if (evt.GetEventTypeId() == FocusEvent.TypeId()) { m_PositionField.Focus(); } }
public virtual void ExecuteDefaultAction(EventBase evt) { if (evt.GetEventTypeId() == FocusEvent.TypeId()) { editorEngine.OnFocus(); } else if (evt.GetEventTypeId() == BlurEvent.TypeId()) { editorEngine.OnLostFocus(); editorEngine.SelectNone(); } }
public virtual void ExecuteDefaultAction(EventBase evt) { if (evt.eventTypeId == FocusEvent.TypeId()) { editorEngine.OnFocus(); // Make sure to select all text, OnFocus() does not call SelectAll for multiline text field. // However, in IMGUI it will be call later by the OnMouseUp event. editorEngine.SelectAll(); } else if (evt.eventTypeId == BlurEvent.TypeId()) { editorEngine.OnLostFocus(); editorEngine.SelectNone(); } }
protected internal override void ExecuteDefaultAction(EventBase evt) { base.ExecuteDefaultAction(evt); if (evt.GetEventTypeId() == FocusEvent.TypeId()) { m_SetKbControl = true; // Make sure the inner IMGUIContainer is receiving the focus m_ColorField.Focus(); } if (evt.GetEventTypeId() == BlurEvent.TypeId()) { m_ResetKbControl = true; } }
public virtual void ExecuteDefaultAction(EventBase evt) { if (evt.eventTypeId == FocusEvent.TypeId()) { editorEngine.OnFocus(); // Make sure to select all text, OnFocus() does not call SelectAll for multiline text field. // If focused from the mouse, it will be called later by the OnMouseUp event. // This is needed when focus is obtained through a keyboard event (i.e. Tab). editorEngine.SelectAll(); } else if (evt.eventTypeId == BlurEvent.TypeId()) { editorEngine.OnLostFocus(); editorEngine.SelectNone(); } }