本文整理汇总了C++中KeyEvent::IsShiftModifier方法的典型用法代码示例。如果您正苦于以下问题:C++ KeyEvent::IsShiftModifier方法的具体用法?C++ KeyEvent::IsShiftModifier怎么用?C++ KeyEvent::IsShiftModifier使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KeyEvent
的用法示例。
在下文中一共展示了KeyEvent::IsShiftModifier方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnKeyEvent
//.........这里部分代码省略.........
{
// Move the focus towards up
MoveFocus(Toolkit::Control::KeyboardFocus::UP);
}
isFocusStartableKey = true;
}
else if (keyName == "Down" && !isAccessibilityEnabled)
{
if(!mIsFocusIndicatorEnabled)
{
// Show focus indicator
mIsFocusIndicatorEnabled = true;
}
else
{
// Move the focus towards down
MoveFocus(Toolkit::Control::KeyboardFocus::DOWN);
}
isFocusStartableKey = true;
}
else if (keyName == "Tab" && !isAccessibilityEnabled)
{
if(!mIsFocusIndicatorEnabled)
{
// Show focus indicator
mIsFocusIndicatorEnabled = true;
}
else
{
// "Tab" key changes the focus group in the forward direction and
// "Shift-Tab" key changes it in the backward direction.
DoMoveFocusToNextFocusGroup(!event.IsShiftModifier());
}
isFocusStartableKey = true;
}
else if (keyName == "space" && !isAccessibilityEnabled)
{
if(!mIsFocusIndicatorEnabled)
{
// Show focus indicator
mIsFocusIndicatorEnabled = true;
}
isFocusStartableKey = true;
}
else if (keyName == "" && !isAccessibilityEnabled)
{
// Check the fake key event for evas-plugin case
if(!mIsFocusIndicatorEnabled)
{
// Show focus indicator
mIsFocusIndicatorEnabled = true;
}
isFocusStartableKey = true;
}
else if (keyName == "Backspace" && !isAccessibilityEnabled)
{
// Emit signal to go back to the previous view???
}
}
else if(event.state == KeyEvent::Up)
{