Ver código fonte

app/edit: fix bug where android sends us spurious compose changes. Just drop them.

jkds 7 meses atrás
pai
commit
af086abc61
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      bin/app/src/ui/edit/mod.rs

+ 4 - 1
bin/app/src/ui/edit/mod.rs

@@ -1328,8 +1328,11 @@ impl BaseEdit {
             return
             return
         }
         }
 
 
+        // Not sure what to do if only compose changes lol
+        // For now just ignore it.
+
         // Text changed - finish any active selection
         // Text changed - finish any active selection
-        if is_text_changed || is_compose_changed {
+        if is_text_changed {
             self.eval_rect().await;
             self.eval_rect().await;
             self.behave.apply_cursor_scroll().await;
             self.behave.apply_cursor_scroll().await;