MCPcopy Create free account
hub / github.com/SpartanJ/eepp / onKeyDown

Method onKeyDown

src/eepp/ui/uitextspan.cpp:616–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616Uint32 UIAnchorSpan::onKeyDown( const KeyEvent& event ) {
617 if ( event.getKeyCode() == KEY_KP_ENTER || event.getKeyCode() == KEY_RETURN ) {
618 if ( !mHref.empty() ) {
619 getUISceneNode()->openURL( mHref );
620 return 1;
621 }
622 }
623
624 return UIWidget::onKeyDown( event );
625}
626
627std::string UIAnchorSpan::getPropertyString( const PropertyDefinition* propertyDef,
628 const Uint32& propertyIndex ) const {

Callers

nothing calls this directly

Calls 3

onKeyDownFunction · 0.85
emptyMethod · 0.45
openURLMethod · 0.45

Tested by

no test coverage detected