Skip to content

Commit

Permalink
don't change the numpad layout. thus, the numpad key is not intended …
Browse files Browse the repository at this point in the history
…for use therein; remove toggle logic from the slide.
  • Loading branch information
devycarol committed Jul 8, 2024
1 parent 2b0ab0e commit b952799
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions app/src/main/assets/layouts/numpad.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
{ "label": "delete" }
],
[
{ "label": "alpha", "width": 0.15 },
{ "label": "alpha" },
{ "label": "comma", "width": 0.1 },
{ "label": "numpad", "width": 0.14 },
{ "label": "symbol", "type": "character", "width": 0.12 },
{ "label": "0", "type": "numeric" },
{ "label": "=", "type": "function", "width": 0.14, "popup": { "relevant": [ { "label": ""}, { "label": ""} ] } },
{ "label": "=", "width": 0.12, "popup": { "relevant": [ { "label": ""}, { "label": ""} ] } },
{ "label": "period", "width": 0.1 },
{ "label": "action", "width": 0.15 }
{ "label": "action" }
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,9 @@ public void onReleaseKey(final int code, final boolean withSliding, final int au
case KeyCode.SYMBOL -> onReleaseSymbol(withSliding, autoCapsFlags, recapitalizeMode);
case KeyCode.ALPHA -> onReleaseAlpha(withSliding, autoCapsFlags, recapitalizeMode);
case KeyCode.NUMPAD -> {
// if no sliding, toggling is instead handled by {@link #onEvent} to accomodate toolbar key.
// if no sliding, toggling is instead handled by {@link #onEvent} to accommodate toolbar key.
// also prevent sliding into to the clipboard layout, which isn't supported yet.
if (withSliding) toggleNumpad(true, autoCapsFlags, recapitalizeMode, mModeBeforeNumpad == MODE_CLIPBOARD, true);
if (withSliding) setNumpadKeyboard(true, mModeBeforeNumpad == MODE_CLIPBOARD, true);
}}
}

Expand Down

0 comments on commit b952799

Please sign in to comment.