| 1019 | } |
| 1020 | |
| 1021 | Uint32 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 | |
| 1032 | std::string UIAnchor::getPropertyString( const PropertyDefinition* propertyDef, |
| 1033 | const Uint32& propertyIndex ) const { |