mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 07:10:40 +01:00
[ion/events_modifier] Reindent
This commit is contained in:
@@ -47,7 +47,7 @@ void TextInput::ContentView::addSelection(const char * left, const char * right)
|
||||
reloadRectFromPosition(left, true); //TODO LEA
|
||||
}
|
||||
|
||||
void TextInput::ContentView::resetSelection() {
|
||||
bool TextInput::ContentView::resetSelection() {
|
||||
const char * previousStart = m_selectionStart;
|
||||
if (previousStart == nullptr) {
|
||||
return false;
|
||||
|
||||
@@ -52,37 +52,37 @@ void updateModifiersFromEvent(Event e) {
|
||||
break;
|
||||
case ShiftAlphaStatus::Alpha:
|
||||
if (e == Shift) {
|
||||
sShiftAlphaStatus = ShiftAlphaStatus::ShiftAlpha;
|
||||
} else if (e == Alpha) {
|
||||
sShiftAlphaStatus = ShiftAlphaStatus::AlphaLock;
|
||||
} else {
|
||||
sShiftAlphaStatus = ShiftAlphaStatus::Default;
|
||||
}
|
||||
break;
|
||||
case ShiftAlphaStatus::ShiftAlpha:
|
||||
if (e == Shift) {
|
||||
sShiftAlphaStatus = ShiftAlphaStatus::Alpha;
|
||||
} else if (e == Alpha) {
|
||||
sShiftAlphaStatus = ShiftAlphaStatus::ShiftAlphaLock;
|
||||
} else {
|
||||
sShiftAlphaStatus = ShiftAlphaStatus::Default;
|
||||
}
|
||||
break;
|
||||
case ShiftAlphaStatus::AlphaLock:
|
||||
if (e == Shift) {
|
||||
sShiftAlphaStatus = ShiftAlphaStatus::ShiftAlphaLock;
|
||||
} else if (e == Alpha) {
|
||||
sShiftAlphaStatus = ShiftAlphaStatus::Default;
|
||||
}
|
||||
break;
|
||||
case ShiftAlphaStatus::ShiftAlphaLock:
|
||||
if (e == Shift) {
|
||||
sShiftAlphaStatus = ShiftAlphaStatus::AlphaLock;
|
||||
} else if (e == Alpha) {
|
||||
sShiftAlphaStatus = ShiftAlphaStatus::Default;
|
||||
}
|
||||
break;
|
||||
}
|
||||
sShiftAlphaStatus = ShiftAlphaStatus::ShiftAlpha;
|
||||
} else if (e == Alpha) {
|
||||
sShiftAlphaStatus = ShiftAlphaStatus::AlphaLock;
|
||||
} else {
|
||||
sShiftAlphaStatus = ShiftAlphaStatus::Default;
|
||||
}
|
||||
break;
|
||||
case ShiftAlphaStatus::ShiftAlpha:
|
||||
if (e == Shift) {
|
||||
sShiftAlphaStatus = ShiftAlphaStatus::Alpha;
|
||||
} else if (e == Alpha) {
|
||||
sShiftAlphaStatus = ShiftAlphaStatus::ShiftAlphaLock;
|
||||
} else {
|
||||
sShiftAlphaStatus = ShiftAlphaStatus::Default;
|
||||
}
|
||||
break;
|
||||
case ShiftAlphaStatus::AlphaLock:
|
||||
if (e == Shift) {
|
||||
sShiftAlphaStatus = ShiftAlphaStatus::ShiftAlphaLock;
|
||||
} else if (e == Alpha) {
|
||||
sShiftAlphaStatus = ShiftAlphaStatus::Default;
|
||||
}
|
||||
break;
|
||||
case ShiftAlphaStatus::ShiftAlphaLock:
|
||||
if (e == Shift) {
|
||||
sShiftAlphaStatus = ShiftAlphaStatus::AlphaLock;
|
||||
} else if (e == Alpha) {
|
||||
sShiftAlphaStatus = ShiftAlphaStatus::Default;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user