Comment 4 for bug 645836

Revision history for this message
Elie SoubriƩ (elie-soubrie) wrote :

I had a look at the code and found the reason why ">" and "<" are not working :

It seems the KeyboardManager.js uses other shortcuts : "," and "." :

    onKeyPress: function (e) {
        var key, character;

        // Letters use Event.which, while arrows, etc. use Event.keyCode
        if (e.keyCode) {
            key = e.keyCode;
        }
        else if (e.which) {
            key = e.which;
        }

        // Get character pressed (letters, etc)
        character = String.fromCharCode(key);

        if (key === 37 || key === 38 || key === 39 || key === 40) {
            //Right-arrow
            if (key === 37) {
                $(document).trigger('move-viewport', [-8, 0]);
            }
[.....]
        else if (character === "f") {
            $("#fullscreen-btn").click();
        }
        else if (character === ",") {
            $("#timeBackBtn").click();
        }
        else if (character === ".") {
            $("#timeForwardBtn").click();
        }