mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[Feature] Shift + Home is now a shortcut to go to calculation (#320)
This commit is contained in:
@@ -218,6 +218,10 @@ bool AppsContainer::processEvent(Ion::Events::Event event) {
|
||||
switchTo(appSnapshotAtIndex(0));
|
||||
return true;
|
||||
}
|
||||
if (event == Ion::Events::ShiftHome) {
|
||||
switchTo(appSnapshotAtIndex(1));
|
||||
return true;
|
||||
}
|
||||
if (event == Ion::Events::OnOff) {
|
||||
suspend(true);
|
||||
return true;
|
||||
|
||||
@@ -120,6 +120,8 @@ constexpr Event EXE = Event::PlainKey(Keyboard::Key::EXE);
|
||||
|
||||
// Shift
|
||||
|
||||
constexpr Event ShiftHome = Event::ShiftKey(Keyboard::Key::Home);
|
||||
|
||||
constexpr Event ShiftLeft = Event::ShiftKey(Keyboard::Key::Left);
|
||||
constexpr Event ShiftRight = Event::ShiftKey(Keyboard::Key::Right);
|
||||
constexpr Event ShiftUp = Event::ShiftKey(Keyboard::Key::Up);
|
||||
|
||||
@@ -21,7 +21,7 @@ static constexpr EventData s_dataForEvent[4*Event::PageSize] = {
|
||||
T("0"), T("."), T("ᴇ"), TL(), TL(), U(),
|
||||
// Shift
|
||||
TL(), TL(), TL(), TL(), U(), U(),
|
||||
U(), U(), U(), U(), U(), U(),
|
||||
TL(), U(), U(), U(), U(), U(),
|
||||
U(), U(), TL(), TL(), TL(), TL(),
|
||||
T("["), T("]"), T("{"), T("}"), T("_"), T("→"),
|
||||
T("asin(\x11)"), T("acos(\x11)"), T("atan(\x11)"), T("="), T("<"), T(">"),
|
||||
@@ -66,7 +66,7 @@ static constexpr const char * s_nameForEvent[255] = {
|
||||
"Zero", "Dot", "EE", "Ans", "EXE", nullptr,
|
||||
//Shift,
|
||||
"ShiftLeft", "ShiftUp", "ShiftDown", "ShiftRight", nullptr, nullptr,
|
||||
nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
|
||||
"ShiftHome", nullptr, nullptr, nullptr, nullptr, nullptr,
|
||||
nullptr, "AlphaLock", "Cut", "Copy", "Paste", "Clear",
|
||||
"LeftBracket", "RightBracket", "LeftBrace", "RightBrace", "Underscore", "Sto",
|
||||
"Arcsine", "Arccosine", "Arctangent", "Equal", "Lower", "Greater",
|
||||
|
||||
@@ -21,7 +21,7 @@ static constexpr EventData s_dataForEvent[4*Event::PageSize] = {
|
||||
T("0"), T("."), T("ᴇ"), TL(), TL(), U(),
|
||||
// Shift
|
||||
TL(), TL(), TL(), TL(), U(), U(),
|
||||
U(), U(), U(), U(), U(), U(),
|
||||
TL(), U(), U(), U(), U(), U(),
|
||||
U(), U(), TL(), TL(), TL(), TL(),
|
||||
T("["), T("]"), T("{"), T("}"), T("_"), T("→"),
|
||||
T("asin(\x11)"), T("acos(\x11)"), T("atan(\x11)"), T("="), T("<"), T(">"),
|
||||
@@ -66,7 +66,7 @@ static constexpr const char * s_nameForEvent[255] = {
|
||||
"Zero", "Dot", "EE", "Ans", "EXE", nullptr,
|
||||
//Shift,
|
||||
"ShiftLeft", "ShiftUp", "ShiftDown", "ShiftRight", nullptr, nullptr,
|
||||
nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
|
||||
"ShiftHome", nullptr, nullptr, nullptr, nullptr, nullptr,
|
||||
nullptr, "AlphaLock", "Cut", "Copy", "Paste", "Clear",
|
||||
"LeftBracket", "RightBracket", "LeftBrace", "RightBrace", "Underscore", "Sto",
|
||||
"Arcsine", "Arccosine", "Arctangent", "Equal", "Lower", "Greater",
|
||||
|
||||
Reference in New Issue
Block a user