Skip to content

Commit

Permalink
fix(a380x/fms): Accept plus/minus KCCU key as first entry into field (#…
Browse files Browse the repository at this point in the history
…9783)

* fix(a380x/fms): Accept plus/minus key as first entry into field

* changelog
  • Loading branch information
flogross89 authored Jan 20, 2025
1 parent 8f33f63 commit 0a7533e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
1. [A380X/ELEC] Various fixes in the electrical system (battery voltage indicator switchup, AC GND SVC BUS and correct behavior of battery contactors) - @Gurgel100 (Pascal)
1. [A380X/FMS] Use cruise mach above crossover altitude - @flogross89 (floridude)
1. [A380X/SD] Display oil quantity on ENG page - @flogross89 (floridude)
1. [A380X/FMS] Accept KCCU plus/minus key as first entry into field - @flogross89 (floridude)

## 0.12.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ export class InputField<T> extends DisplayComponent<InputFieldProps<T>> {
} else if (val && val.substring(0, 1) === '-') {
this.modifiedFieldValue.set(`+${val.substring(1)}`);
} else {
this.modifiedFieldValue.set(`-${this.modifiedFieldValue.get()}`);
this.modifiedFieldValue.set(`-${this.modifiedFieldValue.get() ?? ''}`);
}
}

Expand Down

0 comments on commit 0a7533e

Please sign in to comment.