GearCity

GearCity

View Stats:
Speeder 15 Feb, 2022 @ 7:35pm
Hotkeys work while you are typing text
So I was on my first turn, trying to design that first engine, expending a ton of time fiddling around, then I try to write a name and make a mistake, so I hold the left key and the background spins...

Then I finish fixing the text start, and now need to fix the end, so I press "end" and boom, end turn. :(
< >
Showing 1-8 of 8 comments
Eric.B  [developer] 15 Feb, 2022 @ 7:56pm 
If the textbox has keyboard focus the end key should be disabled. Let me know which textbox you were typing in, and I can verify that it gets proper focus.

You can disable hot keys if you are a frequent end key user.


Originally end turn was the f12, but Steam defaults that key for pictures.

Customizable hotkeys are a feature bounty item.
Last edited by Eric.B; 15 Feb, 2022 @ 7:56pm
Speeder 16 Feb, 2022 @ 11:31am 
the textbox in question was the name of the engine after I hit the button to finish the design.
Eric.B  [developer] 16 Feb, 2022 @ 11:32am 
Originally posted by Speeder:
the textbox in question was the name of the engine after I hit the button to finish the design.

Advanced designer?
Thanks, I'll check it out. Sometimes it loses keyboard focus but still has keyboard focus. I have to flip a toggle for it and hope it works.
Speeder 21 Feb, 2022 @ 12:17pm 
Yep advanced designer, an easy way to test without finishing your turn is just use the arrow keys to navigate text, you will always see the camera spinning.
Eric.B  [developer] 21 Feb, 2022 @ 12:21pm 
I believe the arrow keys move the camera no matter what you're doing in RnD.
Eric.B  [developer] 2 Mar, 2022 @ 2:49pm 
So I got a chance to look at this. It seems the text box is taking the end key as designed.

Likely you clicked on the background, moving the camera, something of this nature. Anytime you click anywhere outside of the text box, the "Last GUI Widget" you clicked won't be the textbox. (The entire screen is a transparent GUI widget that other GUI elements are placed on.) If you click only on the next box and hit the end key, you'll get an error sound and the cursor goes to the end of the text box. Click anywhere else in the screen, and then hit the end key, and the turn will end.


So it's working as designed. There is a hotkey customization system in the Feature Bounty System that is likely to get funded. That will resolve the issue. Until then, if you're a frequent end key presser, remember not to click anything else before hitting the end key, or disable hotkeys.
Eric.B  [developer] 2 Mar, 2022 @ 2:58pm 
I will add, I put an additional check in for the next version where if a textbox has keyboard focus and the last widget clicked was the transparent background sheet, the game shouldn't end turn. I'll have to do some play testing to make sure it doesn't cause any headaches with players who are already used to the existing system before releasing it. But if it's good, then you should get it for 2.0.0.4.
Last edited by Eric.B; 2 Mar, 2022 @ 3:22pm
Eric.B  [developer] 2 Mar, 2022 @ 3:23pm 
Take that last post back, now I remember why that wasn't implemented to begin with, and there isn't much I can do about it. Sorry for the false hope. But the only fix will come with the hotkey customization Feature Bounty.
< >
Showing 1-8 of 8 comments
Per page: 1530 50