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); } } }
void OnChildBlur(BlurEvent evt) { if (m_Pane != null) { m_Pane.pseudoStates = m_Pane.pseudoStates & ~PseudoStates.Focus; } }
void OnTitleBlur(BlurEvent e) { title = m_TitleField.value; m_TitleField.visible = false; GetFirstAncestorOfType <VFXView>(); controller.title = title; }
void OnFocusLost(BlurEvent e) { if (isDelayed && hasChangeDelayed) { NotifyValueChanged(); } UpdateGUI(true); }
protected internal override void ExecuteDefaultAction(EventBase evt) { base.ExecuteDefaultAction(evt); if (evt.GetEventTypeId() == BlurEvent.TypeId()) { UpdateValueFromText(); } }
void OnFocusLost(BlurEvent e) { //forward the focus lost event using (BlurEvent newE = BlurEvent.GetPooled(this, e.relatedTarget, e.direction, panel.focusController)) { SendEvent(newE); } e.StopPropagation(); }
void OnTitleBlur(BlurEvent e) { title = m_TitleField.value; m_TitleField.style.display = DisplayStyle.None; m_Title.UnregisterCallback <GeometryChangedEvent>(OnTitleRelayout); //Notify change NotifyChange(StickyNoteChange.Title); }
void OnNewBuildFocusChanged(BlurEvent evt) { if (evt.relatedTarget == m_NewBuildNameSubmit) { CreateBuildConfigurationWithFormValues(); } else { HideNewConfigurationForm(true); } }
public virtual void ExecuteDefaultAction(EventBase evt) { if (evt.GetEventTypeId() == FocusEvent.TypeId()) { editorEngine.OnFocus(); } else if (evt.GetEventTypeId() == BlurEvent.TypeId()) { editorEngine.OnLostFocus(); editorEngine.SelectNone(); } }
void OnBlurEvent(BlurEvent evt) { if (m_SelectedItem != null) { m_SelectedItem.content.RemoveFromClassList(k_PlainViewSelectedVariantUssClassName); if (!EditorGUIUtility.isProSkin) { m_SelectedItem.SwitchToLightSkinIcon(); } m_SelectedItem.content.AddToClassList(k_ViewSelectedWithNoFocusVariantUssClassName); } }
protected internal override void ExecuteDefaultAction(EventBase evt) { base.ExecuteDefaultAction(evt); if (evt.GetEventTypeId() == FocusEvent.TypeId()) { m_SetKbControl = true; } if (evt.GetEventTypeId() == BlurEvent.TypeId()) { m_ResetKbControl = true; } }
void OnContentsBlur(BlurEvent e) { bool changed = m_Contents.text != m_ContentsField.value; m_Contents.text = m_ContentsField.value; m_ContentsField.style.display = DisplayStyle.None; //Notify change if (changed) { NotifyChange(StickyNodeChangeEvent.Change.contents); } }
void OnContentsBlur(BlurEvent e) { bool changed = m_Contents.text != m_ContentsField.value; m_Contents.text = m_ContentsField.value; m_ContentsField.visible = false; //Notify change if (changed) { NotifyChange(StickyNodeChangeEvent.Change.contents); } }
void OnTitleBlur(BlurEvent e) { //bool changed = m_Title.text != m_TitleField.value; title = m_TitleField.value; m_TitleField.style.display = DisplayStyle.None; m_Title.UnregisterCallback <GeometryChangedEvent>(OnTitleRelayout); //Notify change //if( changed) { NotifyChange(StickyNodeChangeEvent.Change.title); } }
void OnTitleBlur(BlurEvent e) { controller.model.label = m_TextField.value .Trim() .Replace("/", "") .Replace("\\", "") .Replace(":", "") .Replace("<", "") .Replace(">", "") .Replace("*", "") .Replace("?", "") .Replace("\"", "") .Replace("|", "") ; m_TextField.visible = false; }
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(); } }
protected internal override void ExecuteDefaultAction(EventBase evt) { base.ExecuteDefaultAction(evt); if (evt.GetEventTypeId() == BlurEvent.TypeId()) { if (string.IsNullOrEmpty(text)) { // Make sure that empty field gets the default value value = default(T); } else { UpdateValueFromText(); } } }
void OnContentsFieldBlur(BlurEvent evt) { OnFieldFocusOut(); m_Contents.style.visibility = Visibility.Visible; m_ContentsField.style.visibility = Visibility.Hidden; if (!m_EditContentsCancelled) { m_Contents.text = m_ContentsField.text; m_Store.Dispatch(new UpdateStickyNoteAction(stickyNoteModel, title, m_Contents.text)); } m_EditContentsCancelled = false; m_ContentsField.UnregisterCallback <BlurEvent>(OnContentsFieldBlur); m_ContentsField.UnregisterCallback <KeyDownEvent>(OnContentsFieldKeyDown); }
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 hash128Field.value = new Hash128(); } else { UpdateValueFromText(); } } }
private void OnBlur(BlurEvent evt) { base.value = new VRCUrl(text); }
void HandleAttackChanged(BlurEvent evt) { Undo.RecordObject(monster, "Rename Monster Attack"); monster.attacks[attackIdx] = attackTxt.value; }
public void OnDeselect(BlurEvent eventData) { OnStateEnd?.Invoke(null); }
void OnTitleBlur(BlurEvent e) { m_Title.style.display = StyleKeyword.Null; m_TitleField.style.display = DisplayStyle.None; }
void OnFocusLost(BlurEvent e) { DelayedNotifyValueChange(); UpdateGUI(true); }
void OnContentsBlur(BlurEvent e) { m_Content.style.display = StyleKeyword.Null; m_ContentField.style.display = DisplayStyle.None; }