Home | History | Annotate | Download | only in ui

Lines Matching refs:Behavior

158     const Behavior* behavior;
159 if (getKeyBehavior(keyCode, metaState, &key, &behavior)) {
160 result = behavior->character;
175 const Behavior* behavior;
176 if (getKeyBehavior(keyCode, metaState, &key, &behavior)) {
177 if (behavior->fallbackKeyCode) {
178 outFallbackAction->keyCode = behavior->fallbackKeyCode;
179 outFallbackAction->metaState = metaState & ~behavior->metaState;
197 // Try to find the most general behavior that maps to this character.
198 // For example, the base key behavior will usually be last in the list.
199 // However, if we find a perfect meta state match for one behavior then use that one.
200 for (const Behavior* behavior = key->firstBehavior; behavior; behavior = behavior->next) {
201 if (behavior->character) {
203 if (behavior->character == chars[i]) {
204 result = behavior->character;
205 if ((behavior->metaState & metaState) == behavior->metaState) {
265 const Key** outKey, const Behavior** outBehavior) const {
268 const Behavior* behavior = key->firstBehavior;
269 while (behavior) {
270 if ((behavior->metaState & metaState) == behavior->metaState) {
272 *outBehavior = behavior;
275 behavior = behavior->next;
289 // Try to find the most general behavior that maps to this character.
290 // For example, the base key behavior will usually be last in the list.
291 const Behavior* found = NULL;
292 for (const Behavior* behavior = key->firstBehavior; behavior; behavior = behavior->next) {
293 if (behavior->character == ch) {
294 found = behavior;
430 Behavior* behavior = firstBehavior;
431 while (behavior) {
432 Behavior* next = behavior->next;
433 delete behavior;
434 behavior = next;
439 // --- KeyCharacterMap::Behavior ---
441 KeyCharacterMap::Behavior::Behavior() :
624 // Parse behavior after the colon.
627 Behavior behavior;
646 behavior.character = character;
662 LOGE("%s: Invalid key code label for fallback behavior, got '%s'.",
672 behavior.fallbackKeyCode = keyCode;
675 LOGE("%s: Expected a key behavior after ':'.",
684 // Add the behavior.
695 key->label = behavior.character;
706 key->number = behavior.character;
712 for (Behavior* b = key->firstBehavior; b; b = b->next) {
714 LOGE("%s: Duplicate key behavior for modifier.",
719 Behavior* newBehavior = new Behavior(behavior);