-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
Changes rtl check in ChatMessages class #4049
Changes from 5 commits
f7e75d3
f4a9e84
8663ab2
41acef2
a400780
84661dd
2f126fc
44b8efb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -378,8 +378,9 @@ class @ChatMessages | |
else if k is 75 and ((navigator?.platform?.indexOf('Mac') isnt -1 and event.metaKey and event.shiftKey) or (navigator?.platform?.indexOf('Mac') is -1 and event.ctrlKey and event.shiftKey)) | ||
RoomHistoryManager.clear rid | ||
|
||
valueChanged: (rid, event) -> | ||
this.determineInputDirection() | ||
valueChanged: (rid, event, input) -> | ||
if this.input.value.length is 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This won't work! You can't use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tested here and worked, why do you think it wont work? also the derermineInputDirection() method uses this.input too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My bad. I didn't realize There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 😄 |
||
this.determineInputDirection() | ||
|
||
determineInputDirection: () -> | ||
this.input.dir = if this.isMessageRtl(this.input.value) then 'rtl' else 'ltr' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like some un-related changes made it in with this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh i forgot about these! removing now