wplayer

Check-in [b93e987eac]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Don't use global keystroke shortcuts when it's input.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:b93e987eace6a4523d6d7d7c8d6134b2c582bbb3a57594183f0fb88cbf103aa6
User & Date: ajv-899-334-8894@vsta.org 2018-03-13 01:50:46
Context
2018-03-13
02:11
Visual confirmation when you choose a file check-in: d25d5e6c6b user: ajv-899-334-8894@vsta.org tags: master, trunk
01:50
Don't use global keystroke shortcuts when it's input. check-in: b93e987eac user: ajv-899-334-8894@vsta.org tags: master, trunk
01:44
Save scroll position so you continue from wherever you left off at a given folder level. Add keyboard shortcuts (need fixing, sees search input). Add "love" with logging to var/ check-in: 31f5dff385 user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to js/player.js.

396
397
398
399
400
401
402
403
404






405

406
407
408
409
410
411
412

// Set up the player
player.addEventListener("ended", playNext);

// A few keyboard shortcuts
document.onkeypress = function(e) {
    e = e || window.event;
    var kc = e.keyCode;







    // 'b', go back

    if (kc == 98) {
	go_up();

    // 't', go to top
    } else if (kc == 116) {
	var d = document.scrollingElement;
	d.scrollTop = 0;







<

>
>
>
>
>
>

>







396
397
398
399
400
401
402

403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418

// Set up the player
player.addEventListener("ended", playNext);

// A few keyboard shortcuts
document.onkeypress = function(e) {
    e = e || window.event;


    // Not when typing into our input fields
    var tag = e.target.tagName.toLowerCase();
    if ((tag == "input") || (tag == "textarea")) {
	return;
    }

    // 'b', go back
    var kc = e.keyCode;
    if (kc == 98) {
	go_up();

    // 't', go to top
    } else if (kc == 116) {
	var d = document.scrollingElement;
	d.scrollTop = 0;