kroyee / SpeedBlocks

Fast paced tetris game cloned from Cultris II
GNU Lesser General Public License v3.0
11 stars 7 forks source link

[UX] [DISCUSSION] The cursor should be in the textfield when switching to chat(s) #47

Closed jefgenowitsch closed 7 years ago

jefgenowitsch commented 7 years ago

Steps to reproduce:

Switch to the room or lobby chat window

Expected result:

Instant writing without clicking in the textbox

Actual Result

One have to click in the field to type something

Idea: The cursor should be in the textbox when switching to a chat window

kroyee commented 7 years ago

Maybe, but you can't have the cursor in the text-box and play at the same time.

What about if pressing Enter focuses the textbox, and then you can type. That way you can switch over to the chat just to read without interrupting your playing but still have an easy way to access the chat without having to use the mouse.

jefgenowitsch commented 7 years ago

What about pressing the key for switching to chat places the cursor in the box and pressing it again the cursor is removed and you can play?

jefgenowitsch commented 7 years ago

Forget my reply above. Your idea is better!

zDEFz commented 7 years ago

@kroyee you could catch all buttons that are NOT controls of the game before you processing it and send it either to the game OR the Textbox at the same time. That would need some invoking. You probably would need implement some type of threading for it.

However, your idea is far more easy to implement @kroyee

kroyee commented 7 years ago

I made some changes and now it works like the following:

Noir- commented 7 years ago

Does this fix the issue?