MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / OnHexInputTextBoxKeyDown

Method OnHexInputTextBoxKeyDown

Xaml/Controls/ColorPicker.cpp:535–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533 }
534
535 void ColorPicker::OnHexInputTextBoxKeyDown(const IInspectable &, const wux::Input::KeyRoutedEventArgs &args)
536 {
537 if (args.Key() == Windows::System::VirtualKey::Enter)
538 {
539 try
540 {
541 UpdateColorRightNow(Util::Color::FromString(m_HexInputTextBox.Text(), true));
542 }
543 catch (...)
544 {
545 UpdateColorControlValues();
546 UpdateChannelSliderBackgrounds();
547 }
548 }
549 }
550
551 void ColorPicker::OnHexInputTextBoxLostFocus(const IInspectable &, const wux::RoutedEventArgs &)
552 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected