2019-10-24 16:57:27 -04:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
|
2019-11-08 16:27:08 -05:00
|
|
|
namespace Aviat\Kilo\Enum;
|
2019-10-24 16:57:27 -04:00
|
|
|
|
2019-11-19 15:57:51 -05:00
|
|
|
use Aviat\Kilo\Traits;
|
|
|
|
|
2020-02-05 14:50:31 -05:00
|
|
|
/**
|
|
|
|
* Constants representing various control keys
|
2021-03-04 12:03:51 -05:00
|
|
|
* @enum
|
2020-02-05 14:50:31 -05:00
|
|
|
*/
|
2020-01-27 15:11:20 -05:00
|
|
|
class KeyType {
|
2019-11-19 15:57:51 -05:00
|
|
|
use Traits\ConstList;
|
2019-11-19 13:48:12 -05:00
|
|
|
|
2021-03-17 15:38:52 -04:00
|
|
|
public const ARROW_DOWN = 'KEY_ARROW_DOWN';
|
|
|
|
public const ARROW_LEFT = 'KEY_ARROW_LEFT';
|
|
|
|
public const ARROW_RIGHT = 'KEY_ARROW_RIGHT';
|
|
|
|
public const ARROW_UP = 'KEY_ARROW_UP';
|
|
|
|
public const BACKSPACE = 'KEY_BACKSPACE';
|
2021-04-09 13:52:01 -04:00
|
|
|
public const DELETE = 'KEY_DELETE';
|
|
|
|
public const END = 'KEY_END';
|
2021-03-17 15:38:52 -04:00
|
|
|
public const ENTER = 'KEY_ENTER';
|
|
|
|
public const ESCAPE = 'KEY_ESCAPE';
|
2021-04-09 13:52:01 -04:00
|
|
|
public const HOME = 'KEY_HOME';
|
2021-03-17 15:38:52 -04:00
|
|
|
public const PAGE_DOWN = 'KEY_PAGE_DOWN';
|
|
|
|
public const PAGE_UP = 'KEY_PAGE_UP';
|
2019-10-24 16:57:27 -04:00
|
|
|
}
|