<commit_before>// Amara, universalsubtitles.org
//
// Copyright (C) 2013 Participatory Culture Foundation
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see
// http://www.gnu.org/licenses/agpl-3.0.html.

(function() {

    var module = angular.module('amara.SubtitleEditor.help', []);

    module.controller('HelpController', function($scope, SubtitleStorage) {
        /**
         * Responsible for handling the various states of the help panel.
         * @param $scope
         * @param SubtitleStorage
         * @constructor
         */

        $scope.commands = [
            { key: 'shift + space', description: 'play / pause the video' },
            { key: 'shift + tab', description: 'move to the previous subtitle' },
            { key: 'tab', description: 'move to the next subtitle' }
        ];

        $scope.showAdvancedModal = function() {

            $scope.$root.$emit('show-modal', {
                heading: 'Advanced keyboard controls',
                text: 'Full list of keyboard shortcuts to go here.',
                buttons: [{
                    'text': 'Close', 'class': 'yes', 'fn': function() {
                        $scope.$root.$emit('hide-modal');
                    }
                }]
            });

        };<commit_msg>updates the displayed keyboard shortcut help text<commit_after>// Amara, universalsubtitles.org
//
// Copyright (C) 2013 Participatory Culture Foundation
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see
// http://www.gnu.org/licenses/agpl-3.0.html.

(function() {

    var module = angular.module('amara.SubtitleEditor.help', []);

    module.controller('HelpController', function($scope, SubtitleStorage) {
        /**
         * Responsible for handling the various states of the help panel.
         * @param $scope
         * @param SubtitleStorage
         * @constructor
         */

        $scope.commands = [
            { key: 'tab', description: 'starts and stops video playback' },
            { key: 'enter', description: 'moves to the next line and <br /> adds a new line (when the timeline is closed)' },
            { key: 'shift + ctrl + . or ,', description: 'skips playback forward or back 4 seconds' }
                   ];

        $scope.showAdvancedModal = function() {

            $scope.$root.$emit('show-modal', {
                heading: 'Advanced keyboard controls',
                text: 'Full list of keyboard shortcuts to go here.',
                buttons: [{
                    'text': 'Close', 'class': 'yes', 'fn': function() {
                        $scope.$root.$emit('hide-modal');
                    }
                }]
            });

        };
{'fraction_non_alphanumeric': 0.11050299713317696, 'fraction_numerical': 0.003909304143862392, 'mean_word_length': 2.1797845898922947, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3206731', 'n_tokens_mistral': 989, 'n_tokens_neox': 936, 'n_words': 386}