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

Method onKeyDown

src/eepp/ui/uitextview.cpp:1021–1030  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1019}
1020
1021Uint32 UIAnchor::onKeyDown( const KeyEvent& event ) {
1022 if ( event.getKeyCode() == KEY_KP_ENTER || event.getKeyCode() == KEY_RETURN ) {
1023 if ( !mHref.empty() ) {
1024 getUISceneNode()->openURL( mHref );
1025 return 1;
1026 }
1027 }
1028
1029 return UIWidget::onKeyDown( event );
1030}
1031
1032std::string UIAnchor::getPropertyString( const PropertyDefinition* propertyDef,
1033 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