Pārlūkot izejas kodu

i 与逗号换位置:逗号上到第 4 行,i 挪到最后一行

Co-Authored-By: Claude Code <noreply@anthropic.com>
nonvioce 4 nedēļas atpakaļ
vecāks
revīzija
d35b49ec3e
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4 4
      lib/calculator_page.dart

+ 4 - 4
lib/calculator_page.dart

@@ -473,10 +473,9 @@ class _CalculatorPageState extends State<CalculatorPage> {
             _Key('=', _Act.char, payload: '=', tint: true),
             _Key('==', _Act.char, payload: '==', tint: true),
             // /. 和 -> 永远成对出现(代入就是 `式子 /. x -> 值`),
-            // 合成一个键直接给出骨架,省一个位置给 i
+            // 合成一个键直接给出骨架,省一个位置给逗号(矩阵行分隔)
             _Key('/.→', _Act.subst, tint: true),
-            // 虚数单位。送进 Symja 的是 I,编辑框里显示小写 i
-            _Key('i', _Act.char, payload: 'I', tint: true, display: 'i'),
+            _Key(',', _Act.comma),
             _Key('{', _Act.brace, tint: true),
           ],
           // 5 数字与括号
@@ -513,7 +512,8 @@ class _CalculatorPageState extends State<CalculatorPage> {
           [
             _Key('⌫', _Act.back, tint: true),
             _Key('CLR', _Act.clear, tint: true),
-            _Key(',', _Act.comma),
+            // 虚数单位。送进 Symja 的是 I,编辑框里显示小写 i
+            _Key('i', _Act.char, payload: 'I', tint: true, display: 'i'),
             _Key('ANS', _Act.char, payload: '%', tint: true, display: 'ANS'),
             // 键盘负责"敲字符",✓ 负责"执行"。两者都叫 = 会撞车。
             _Key('✓', _Act.commit, primary: true),