~elementary-apps/audience/loki

« back to all changes in this revision

Viewing changes to src/Window.vala

  • Committer: Artem Anufrij
  • Author(s): Marko
  • Date: 2017-08-11 09:31:42 UTC
  • Revision ID: git-v1:f263426cd097c9e638c0e640f4b59107a8d4ef4a
Don't allow space key to process further in player page. (#38)

Show diffs side-by-side

added added

removed removed

Lines of Context:
242
242
        }
243
243
 
244
244
        if (main_stack.visible_child == player_page) {
245
 
            if (match_keycode (Gdk.Key.p, keycode) || match_keycode (Gdk.Key.space, keycode)) {
 
245
            if (match_keycode (Gdk.Key.space, keycode)) {
 
246
                player_page.playing = !player_page.playing;
 
247
                return true;
 
248
            } else if (match_keycode (Gdk.Key.p, keycode)) {
246
249
                player_page.playing = !player_page.playing;
247
250
            } else if (match_keycode (Gdk.Key.a, keycode)) {
248
251
                player_page.next_audio ();