2 * Copyright (c) 2021 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali/internal/input/common/key-impl.h>
29 // matches a DALI_KEY enum, to key name
31 KeyLookup KeyLookupTable[]=
33 // more than one key name can be assigned to a single dali-key code
34 // e.g. "Menu" and "XF86Menu" are both assigned to DALI_KEY_MENU
36 { "Escape", DALI_KEY_ESCAPE, false },
37 { "Menu", DALI_KEY_MENU, false },
38 { "Cancel", DALI_KEY_CANCEL, false },
40 { "BackSpace", DALI_KEY_BACKSPACE, false },
41 { "Up", DALI_KEY_CURSOR_UP, false }, // To be removed after the key name is fixed in the platform
42 { "Left", DALI_KEY_CURSOR_LEFT, false },
43 { "Right", DALI_KEY_CURSOR_RIGHT, false },
44 { "Down", DALI_KEY_CURSOR_DOWN, false }, // To be removed after the key name is fixed in the platform
45 { "Shift_L", DALI_KEY_SHIFT_LEFT, false },
46 { "Shift_R", DALI_KEY_SHIFT_RIGHT, false },
47 { "Delete", static_cast<Dali::KEY>( DevelKey::DALI_KEY_DELETE ), false },
48 { "Control_L", static_cast<Dali::KEY>( DevelKey::DALI_KEY_CONTROL_LEFT ), false },
49 { "Control_R", static_cast<Dali::KEY>( DevelKey::DALI_KEY_CONTROL_RIGHT ), false }
53 const std::size_t KEY_LOOKUP_COUNT = (sizeof(KeyLookupTable)) / (sizeof(KeyLookup));
55 } // namespace KeyLookup
57 } // namespace Adaptor
59 } // namespace Internal