Skip to content

Commit

Permalink
fix: schema name on space bar didn't change after switching schema
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Nov 26, 2024
1 parent 8c3e057 commit 75440de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class KeyboardWindow(

override fun onCreateView(): View {
keyboardView = context.frameLayout(R.id.keyboard_view)
attachKeyboard(evalKeyboard(".default"))
attachKeyboard(evalKeyboard(rime.run { schemaItemCached.id }))
return keyboardView
}

Expand Down Expand Up @@ -262,7 +262,7 @@ class KeyboardWindow(
}

override fun onRimeSchemaUpdated(schema: SchemaItem) {
switchKeyboard(smartMatchKeyboard())
switchKeyboard(schema.id)
}

override fun onRimeOptionUpdated(value: OptionNotification.Value) {
Expand Down

0 comments on commit 75440de

Please sign in to comment.