Skip to content

Commit

Permalink
revise comments
Browse files Browse the repository at this point in the history
  • Loading branch information
devycarol committed Jul 8, 2024
1 parent 60e4ce6 commit d293493
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ private void onRestoreKeyboardState(final int autoCapsFlags, final int recapital
return;
}
if (state.mMode == MODE_NUMPAD) {
// don't overwrite toggle info in this case
// don't overwrite toggle state if reloading from orientation change, etc.
setNumpadKeyboard(false, false, false);
return;
}
Expand Down Expand Up @@ -515,7 +515,7 @@ public void onReleaseKey(final int code, final boolean withSliding, final int au
case KeyCode.ALPHA -> onReleaseAlpha(withSliding, autoCapsFlags, recapitalizeMode);
case KeyCode.NUMPAD -> {
// 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.
// also prevent sliding to clipboard layout, which isn't supported yet.
if (withSliding) setNumpadKeyboard(true, mModeBeforeNumpad == MODE_CLIPBOARD, true);
}}
}
Expand Down

0 comments on commit d293493

Please sign in to comment.