Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Larger area to click on to enter a message #4906

Closed
turt2live opened this issue Aug 27, 2017 · 12 comments
Closed

Larger area to click on to enter a message #4906

turt2live opened this issue Aug 27, 2017 · 12 comments

Comments

@turt2live
Copy link
Member

Description

Some people I work with have found it frustrating/annoying how small the message entry field is, leading them to click "a thousand times" before being able to type their message. The clickable area should probably be larger.

Steps to reproduce

  • alt+tab to another window
  • Furiously click the browser window to try and send a message
  • Be enraged

Log: not sent

Version information

  • Platform: web (in-browser)
  • Browser: Chrome 60
  • OS: Windows 10
  • URL: riot.im/develop (and internal based on v0.12.2)
@t3chguy
Copy link
Member

t3chguy commented Aug 27, 2017

I agree, clicking anywhere below that horizontal line (and within the invisible side confines) should fire a focus_composer dispatch, (assuming it was not a click of one of the buttons)

@lukebarnard1
Copy link
Contributor

This is fairly tractable. I would suggest an onClick for "mx_MessageComposer_input" that launches a dispatch with the necessary check to make sure it was indeed the input that was clicked on.

I'd also suggest changing the cursor to the text cursor /w CSS.

This would give focus for the yellow area shown here:
2017-08-30-093234_736x127_scrot

@turt2live
Copy link
Member Author

I'd still like to see the entire bar clickable. I also find myself clicking random areas of the bar, hoping to get focus on the composer.

@lukebarnard1
Copy link
Contributor

That would effectively be "mx_MessageComposer_row". I wouldn't mind putting that on develop and seeing how it feels.

@lukebarnard1 lukebarnard1 self-assigned this Aug 30, 2017
@lampholder
Copy link
Member

I think we've spoken about this IRL, but as a chat application, by far the most common thing people will be doing is typing into the composer.

We could just interpret any keypress that isn't otherwise handled as being intended for the composer and return focus there. This... sounds like something that could cause untold misery if we implement it quickly and naively, though.

@turt2live
Copy link
Member Author

I'd very much like to be able to mash my keyboard and have a message automatically work. This issue was kinda intended to be a "stepping stone" to that issue though :)

@lukebarnard1
Copy link
Contributor

lukebarnard1 commented Sep 18, 2017

We could just interpret any keypress that isn't otherwise handled as being intended for the composer and return focus there

untold misery

Yep. I'd rather define something(s) much smaller in scope for regaining focus on the composer. Things that should probably focus the composer:

  • Clicking in the "composer"
  • Focusing the window
  • After swapping rooms (already done)

@t3chguy
Copy link
Member

t3chguy commented Sep 18, 2017

Focusing the window

this used to be the case and was removed by me because when clicking from another Window into Riot onto something like Filter room names or Filter room members you'd instead be sent to Composer

@turt2live
Copy link
Member Author

The focus logic could be improved for that. If you focus onto something that is logically focusable, then focus on that, else onto the composer.

@lukebarnard1
Copy link
Contributor

lukebarnard1 commented Apr 6, 2018

The focus logic could be improved for that. If you focus onto something that is logically focusable, then focus on that, else onto the composer.

Actually, when you focus on something, the element with focus will be remembered if the entire window loses focus.

So actually we should deliberately not focus the composer when the window is given focus.

This leaves

Clicking in the "composer"

We may have to investigate individual cases where the composer loses focus and we could look into other events that could preempt giving focus to the composer.

@t3chguy
Copy link
Member

t3chguy commented Jun 25, 2018

So for now I implemented something along the lines of
image

Leaving this issue open in case its insufficient/etc etc

@turt2live
Copy link
Member Author

In practice I think this is done now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants