Explorar o código

add trailing comma to trigger line breaks

xuty %!s(int64=4) %!d(string=hai) anos
pai
achega
2e21d0783b

+ 7 - 5
lib/frontend/input_behavior_default.dart

@@ -22,11 +22,13 @@ class InputBehaviorDefault extends InputBehavior {
     final key = inputMap(event.logicalKey);
 
     if (key != null) {
-      terminal.keyInput(key,
-          ctrl: event.isControlPressed,
-          alt: event.isAltPressed,
-          shift: event.isShiftPressed,
-          mac: terminal.platform.useMacInputBehavior);
+      terminal.keyInput(
+        key,
+        ctrl: event.isControlPressed,
+        alt: event.isAltPressed,
+        shift: event.isShiftPressed,
+        mac: terminal.platform.useMacInputBehavior,
+      );
     }
   }
 

+ 15 - 14
lib/input/keytab/keytab_parse.dart

@@ -165,20 +165,21 @@ class KeytabParser {
     }
 
     final record = KeytabRecord(
-        qtKeyName: keyName.value,
-        key: key,
-        action: action,
-        alt: alt,
-        ctrl: ctrl,
-        shift: shift,
-        anyModifier: anyModifier,
-        ansi: ansi,
-        appScreen: appScreen,
-        keyPad: keyPad,
-        appCursorKeys: appCursorKeys,
-        appKeyPad: appKeyPad,
-        newLine: newLine,
-        mac: mac);
+      qtKeyName: keyName.value,
+      key: key,
+      action: action,
+      alt: alt,
+      ctrl: ctrl,
+      shift: shift,
+      anyModifier: anyModifier,
+      ansi: ansi,
+      appScreen: appScreen,
+      keyPad: keyPad,
+      appCursorKeys: appCursorKeys,
+      appKeyPad: appKeyPad,
+      newLine: newLine,
+      mac: mac,
+    );
 
     _records.add(record);
   }

+ 16 - 6
lib/terminal/platform.dart

@@ -1,16 +1,26 @@
 class PlatformBehavior {
-  const PlatformBehavior(
-      {required this.oscTerminators, required this.useMacInputBehavior});
+  const PlatformBehavior({
+    required this.oscTerminators,
+    required this.useMacInputBehavior,
+  });
 
   final Set<int> oscTerminators;
   final bool useMacInputBehavior;
 }
 
 class PlatformBehaviors {
-  static const mac =
-      PlatformBehavior(oscTerminators: {0x07, 0x5c}, useMacInputBehavior: true);
+  static const mac = PlatformBehavior(
+    oscTerminators: {0x07, 0x5c},
+    useMacInputBehavior: true,
+  );
+
   static const unix = PlatformBehavior(
-      oscTerminators: {0x07, 0x5c}, useMacInputBehavior: false);
+    oscTerminators: {0x07, 0x5c},
+    useMacInputBehavior: false,
+  );
+
   static const windows = PlatformBehavior(
-      oscTerminators: {0x07, 0x00}, useMacInputBehavior: false);
+    oscTerminators: {0x07, 0x00},
+    useMacInputBehavior: false,
+  );
 }