Приведение к общему стилю.
This commit is contained in:
parent
0c46949c38
commit
ff93fbb371
1 changed files with 4 additions and 0 deletions
|
|
@ -50,12 +50,16 @@ public:
|
||||||
override ScreenAction handle(ScreenContext context, KeyEvent event)
|
override ScreenAction handle(ScreenContext context, KeyEvent event)
|
||||||
{
|
{
|
||||||
if (!_enabled)
|
if (!_enabled)
|
||||||
|
{
|
||||||
return ScreenAction.none();
|
return ScreenAction.none();
|
||||||
|
}
|
||||||
|
|
||||||
if (isEnter(event) || isSpace(event))
|
if (isEnter(event) || isSpace(event))
|
||||||
{
|
{
|
||||||
if (_onClick !is null)
|
if (_onClick !is null)
|
||||||
|
{
|
||||||
return _onClick();
|
return _onClick();
|
||||||
|
}
|
||||||
return ScreenAction.none();
|
return ScreenAction.none();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue