File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -277,10 +277,12 @@ if (active) {
277
277
key = (oControl.kMenu1 > 0);
278
278
}
279
279
280
- if (key && oControl.kMenu1PushedSteps == 0) {
280
+ if ((oControl.kMenu1 > 0 || keyboard_check_pressed(vk_enter)) && oControl.kMenu1PushedSteps == 0) {
281
281
if (global.curropt == num_ip && os_type != os_android) {
282
- editing = !editing;
283
- op[num_ip].editing = editing;
282
+ if(editing && keyboard_check_pressed(vk_enter)){
283
+ editing = !editing;
284
+ op[num_ip].editing = editing;
285
+ }
284
286
if(editing){
285
287
keyboard_string = ip;
286
288
}
@@ -294,6 +296,10 @@ if (active) {
294
296
op[num_ip].editing = editing;
295
297
}
296
298
if (global.curropt == num_port && os_type != os_android) {
299
+ if(editing && keyboard_check_pressed(vk_enter)){
300
+ editing = !editing;
301
+ op[num_port].editing = editing;
302
+ }
297
303
editing = !editing;
298
304
op[num_port].editing = editing;
299
305
if(editing){
@@ -309,6 +315,10 @@ if (active) {
309
315
op[num_port].editing = editing;
310
316
}
311
317
if (global.curropt == num_name && os_type != os_android) {
318
+ if(editing && keyboard_check_pressed(vk_enter)){
319
+ editing = !editing;
320
+ op[num_name].editing = editing;
321
+ }
312
322
editing = !editing;
313
323
op[num_name].editing = editing;
314
324
if(editing){
You can’t perform that action at this time.
0 commit comments