| 183 | } |
| 184 | |
| 185 | void SpinButton::HandleKeyEvent( sf::Keyboard::Key key, sf::Keyboard::Scancode scancode, bool press ) { |
| 186 | Entry::HandleKeyEvent( key, scancode, press ); |
| 187 | |
| 188 | if( !press || !HasFocus() ) { |
| 189 | return; |
| 190 | } |
| 191 | |
| 192 | if( scancode == sf::Keyboard::Scancode::Enter ) { |
| 193 | GrabFocus( Widget::Ptr() ); |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | void SpinButton::HandleSizeChange() { |
| 198 | float stepper_aspect_ratio( Context::Get().GetEngine().GetProperty<float>( "StepperAspectRatio", shared_from_this() ) ); |
nothing calls this directly
no outgoing calls
no test coverage detected