Issue #311 playback input improvements #317

Merged
akinwale merged 4 commits from issue311 into master 2017-07-04 20:13:14 +02:00
akinwale commented 2017-07-01 22:51:58 +02:00 (Migrated from github.com)
  • Pressing the space bar can initiate video playback
  • Pressing the space bar can pause and resume video playback
  • Clicking on the video area (above the video controls) after initial playback can pause and resume video playback
- Pressing the space bar can initiate video playback - Pressing the space bar can pause and resume video playback - Clicking on the video area (above the video controls) after initial playback can pause and resume video playback
kauffj (Migrated from github.com) requested changes 2017-07-01 23:06:52 +02:00
kauffj (Migrated from github.com) left a comment

Great stuff! Some small changes required

Great stuff! Some small changes required
kauffj (Migrated from github.com) commented 2017-07-01 23:00:39 +02:00

this needs to be undone in unmount

this needs to be undone in unmount
kauffj (Migrated from github.com) commented 2017-07-01 23:03:00 +02:00

Can we use a code or constant here? Possible https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code?

Can we use a code or constant here? Possible https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code?
kauffj (Migrated from github.com) commented 2017-07-01 23:06:36 +02:00

This needs to be unbound when unmounted.

This needs to be unbound when unmounted.
akinwale commented 2017-07-01 23:58:01 +02:00 (Migrated from github.com)

@kauffj Pushed a new commit with the requested changes.

@kauffj Pushed a new commit with the requested changes.
kauffj commented 2017-07-02 17:13:48 +02:00 (Migrated from github.com)

@akinwale changes look good, thanks! One issue I noticed while testing is that the "keydown" bind hijacks the ability to type space into the omnibar.

Either the event needs to be bound to an element deeper in the DOM, or we need to check if the keypress is happening inside of a form element and allow it to proceed rather than treating is a possible play press.

@akinwale changes look good, thanks! One issue I noticed while testing is that the "keydown" bind hijacks the ability to type space into the omnibar. Either the event needs to be bound to an element deeper in the DOM, or we need to check if the keypress is happening inside of a form element and allow it to proceed rather than treating is a possible play press.
akinwale commented 2017-07-02 20:34:40 +02:00 (Migrated from github.com)

@kauffj Added a form control check in the new commit.

@kauffj Added a form control check in the new commit.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#317
No description provided.