summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c7ecf3a)
After calling ClearFocus api, mIsFocusIndicatorEnabled will be 0.
In this case, if you call SetCurrentFocusActor again, then the first pressed direction key is valid, but the second pressed direction key can works. It's an issue.
Change-Id: I0d731263f11b40fa3211fd64388f8c9da5707fc9
// Show focus indicator
mIsFocusIndicatorEnabled = 1;
}
// Show focus indicator
mIsFocusIndicatorEnabled = 1;
}
- else
- {
- // Move the focus towards left
- MoveFocus(Toolkit::Control::KeyboardFocus::LEFT);
- }
+ // Move the focus towards left
+ MoveFocus(Toolkit::Control::KeyboardFocus::LEFT);
isFocusStartableKey = true;
}
else
isFocusStartableKey = true;
}
else
// Show focus indicator
mIsFocusIndicatorEnabled = 1;
}
// Show focus indicator
mIsFocusIndicatorEnabled = 1;
}
- else
- {
- // Move the focus towards right
- MoveFocus(Toolkit::Control::KeyboardFocus::RIGHT);
- }
+
+ // Move the focus towards right
+ MoveFocus(Toolkit::Control::KeyboardFocus::RIGHT);
// Show focus indicator
mIsFocusIndicatorEnabled = 1;
}
// Show focus indicator
mIsFocusIndicatorEnabled = 1;
}
- else
- {
- // Move the focus towards up
- MoveFocus(Toolkit::Control::KeyboardFocus::UP);
- }
+ // Move the focus towards up
+ MoveFocus(Toolkit::Control::KeyboardFocus::UP);
isFocusStartableKey = true;
}
else if (keyName == "Down" && !isAccessibilityEnabled)
isFocusStartableKey = true;
}
else if (keyName == "Down" && !isAccessibilityEnabled)
// Show focus indicator
mIsFocusIndicatorEnabled = 1;
}
// Show focus indicator
mIsFocusIndicatorEnabled = 1;
}
- else
- {
- // Move the focus towards down
- MoveFocus(Toolkit::Control::KeyboardFocus::DOWN);
- }
+ // Move the focus towards down
+ MoveFocus(Toolkit::Control::KeyboardFocus::DOWN);
isFocusStartableKey = true;
}
else if (keyName == "Prior" && !isAccessibilityEnabled)
isFocusStartableKey = true;
}
else if (keyName == "Prior" && !isAccessibilityEnabled)
// Show focus indicator
mIsFocusIndicatorEnabled = 1;
}
// Show focus indicator
mIsFocusIndicatorEnabled = 1;
}
- else
- {
- // Move the focus towards the previous page
- MoveFocus(Toolkit::Control::KeyboardFocus::PAGE_UP);
- }
+
+ // Move the focus towards the previous page
+ MoveFocus(Toolkit::Control::KeyboardFocus::PAGE_UP);
isFocusStartableKey = true;
}
isFocusStartableKey = true;
}
// Show focus indicator
mIsFocusIndicatorEnabled = 1;
}
// Show focus indicator
mIsFocusIndicatorEnabled = 1;
}
- else
- {
- // Move the focus towards the next page
- MoveFocus(Toolkit::Control::KeyboardFocus::PAGE_DOWN);
- }
+
+ // Move the focus towards the next page
+ MoveFocus(Toolkit::Control::KeyboardFocus::PAGE_DOWN);
isFocusStartableKey = true;
}
isFocusStartableKey = true;
}