Skip to content

Commit 85a85be

Browse files
committed
fix(expander): set backspace undoes expansion toggle off by default
1 parent 8042a71 commit 85a85be

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/helium314/keyboard/latin/utils/TextExpanderUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ object TextExpanderUtils {
2929
}
3030

3131
fun isBackspaceRevertsEnabled(context: Context): Boolean {
32-
return context.prefs().getBoolean(PREF_BACKSPACE_REVERTS, true)
32+
return context.prefs().getBoolean(PREF_BACKSPACE_REVERTS, false)
3333
}
3434

3535

app/src/main/java/helium314/keyboard/settings/screens/TextExpanderScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ fun TextExpanderScreen(onClickBack: () -> Unit) {
330330
SwitchPreference(
331331
name = "Backspace undoes expansion",
332332
key = TextExpanderUtils.PREF_BACKSPACE_REVERTS,
333-
default = true,
333+
default = false,
334334
description = "Revert expanded text back to shortcut on backspace.",
335335
enabled = isExpanderEnabled,
336336
onCheckedChange = { isBackspaceRevertsEnabled = it }

0 commit comments

Comments
 (0)