Приведение к общему стилю.
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)
|
||||
{
|
||||
if (!_enabled)
|
||||
{
|
||||
return ScreenAction.none();
|
||||
}
|
||||
|
||||
if (isEnter(event) || isSpace(event))
|
||||
{
|
||||
if (_onClick !is null)
|
||||
{
|
||||
return _onClick();
|
||||
}
|
||||
return ScreenAction.none();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue