/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
// 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
// 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);
}
else
{
// 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)
// 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)
// 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;
}
else if (keyName == "Next" && !isAccessibilityEnabled)
// 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;
}
else if (keyName == "Tab" && !isAccessibilityEnabled)