[Feature] Shift + Home is now a shortcut to go to calculation (#320)

This commit is contained in:
David
2020-03-27 15:02:35 -05:00
committed by GitHub
parent dde2d67634
commit cd8965fdd4
4 changed files with 10 additions and 4 deletions

View File

@@ -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;

View File

@@ -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);

View File

@@ -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",

View File

@@ -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",