2 * Copyright (c) 2018 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>
33 // matches a DALI_KEY enum, to key name
34 KeyLookup KeyLookupTable[]=
36 // more than one key name can be assigned to a single dali-key code
37 // e.g. "Menu" and "XF86Menu" are both assigned to DALI_KEY_MENU
39 { "Escape", DALI_KEY_ESCAPE, false },
40 { "Menu", DALI_KEY_MENU, false },
41 { "Cancel", DALI_KEY_CANCEL, false },
43 { "BackSpace", DALI_KEY_BACKSPACE, false },
44 { "Up", DALI_KEY_CURSOR_UP, false }, // To be removed after the key name is fixed in the platform
45 { "Left", DALI_KEY_CURSOR_LEFT, false },
46 { "Right", DALI_KEY_CURSOR_RIGHT, false },
47 { "Down", DALI_KEY_CURSOR_DOWN, false }, // To be removed after the key name is fixed in the platform
48 { "Shift_L", DALI_KEY_SHIFT_LEFT, false },
49 { "Shift_R", DALI_KEY_SHIFT_RIGHT, false },
50 { "Delete", static_cast<Dali::KEY>( DevelKey::DALI_KEY_DELETE ), false },
51 { "Control_L", static_cast<Dali::KEY>( DevelKey::DALI_KEY_CONTROL_LEFT ), false },
52 { "Control_R", static_cast<Dali::KEY>( DevelKey::DALI_KEY_CONTROL_RIGHT ), false }
55 const std::size_t KEY_LOOKUP_COUNT = (sizeof( KeyLookupTable ))/ (sizeof( KeyLookup ));
57 } // namespace KeyLookup
59 } // namespace Adaptor
61 } // namespace Internal