diff --git a/code/game/machinery/atmo_control.dm b/code/game/machinery/atmo_control.dm index c733170cabf..507e79de4e8 100644 --- a/code/game/machinery/atmo_control.dm +++ b/code/game/machinery/atmo_control.dm @@ -294,7 +294,7 @@ obj/machinery/computer/general_air_control/Destroy() output_info = null signal.data = list ("tag" = output_tag, "power_toggle" = 1) - if(href_list["out_set_pressure"]) + if(href_list["out_set_pressure"] != null) var/setpressure = between(0, text2num(href_list["out_set_pressure"]), max_pressure_setting) output_info = null signal.data = list ("tag" = output_tag, "set_external_pressure" = "[setpressure]", "checks" = 1) diff --git a/html/changelogs/giodjsgijdfhjdfkhfd.yml b/html/changelogs/giodjsgijdfhjdfkhfd.yml new file mode 100644 index 00000000000..25766d279ad --- /dev/null +++ b/html/changelogs/giodjsgijdfhjdfkhfd.yml @@ -0,0 +1,4 @@ +author: Karolis2011 +delete-after: True +changes: + - tweak: "Now atmospheric control consoles (like tank and supermatter) numeric inputs set value on enter key press." diff --git a/vueui/src/components/view/console/atmocontrol/injector.vue b/vueui/src/components/view/console/atmocontrol/injector.vue index fe08feec0e4..e2ab6a83418 100644 --- a/vueui/src/components/view/console/atmocontrol/injector.vue +++ b/vueui/src/components/view/console/atmocontrol/injector.vue @@ -13,9 +13,7 @@ Disengaged - + \ No newline at end of file diff --git a/vueui/src/components/view/console/atmocontrol/tank.vue b/vueui/src/components/view/console/atmocontrol/tank.vue index f7843bcc486..ec31ee33496 100644 --- a/vueui/src/components/view/console/atmocontrol/tank.vue +++ b/vueui/src/components/view/console/atmocontrol/tank.vue @@ -9,7 +9,14 @@ {{ state['input'].rate }} L/s -
+ +
Set Flow Rate
@@ -22,9 +29,19 @@ {{ state['output'].pressure }} kPa - -
- Set Pressure + +
+ Set Pressure
Search for output port @@ -32,9 +49,15 @@ \ No newline at end of file diff --git a/vueui/src/components/vui/input/numeric.vue b/vueui/src/components/vui/input/numeric.vue index 0ddabd91704..4dc79d94112 100644 --- a/vueui/src/components/vui/input/numeric.vue +++ b/vueui/src/components/vui/input/numeric.vue @@ -1,8 +1,8 @@ @@ -71,7 +71,6 @@ export default { } console.log(int, field.value, this.value, this.val) this.UpdateValue(int) - Store.pushState() if(_inival == this.val && !(field.value.endsWith("."))) { this.$refs.input.value = this.val } @@ -89,6 +88,10 @@ export default { if(int < this.min) int = this.min this.val = int this.$emit('input', int); + if(this.pushState) Store.pushState() + }, + onKeyPress(event) { + this.$emit('keypress', event) } }, watch: {