Skip to content

Commit

Permalink
Skip processing default toggle full screen video key if video is play…
Browse files Browse the repository at this point in the history
…ing.

Small tweak to button navigation in StreamedMP random view.
  • Loading branch information
RickDB authored and RickDB committed Sep 9, 2016
1 parent 366dbe4 commit 7700480
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MyAnimePlugin3/Skins/Titan/Anime3_Random.xml
Expand Up @@ -643,7 +643,7 @@
<onleft>10</onleft>
<onleft>901</onleft>
<onright>823</onright>
<onup>801</onup>
<onup>804</onup>
<ondown>822</ondown>
<posX>60</posX>
<posY>860</posY>
Expand Down
8 changes: 6 additions & 2 deletions MyAnimePlugin3/Windows/MainWindow.cs
Expand Up @@ -2580,8 +2580,6 @@ private void KeyCommandHandler(int keycodeInput)
// For some reason keycode [ and ] aren't lining up to their WinForm keycode counterpart so we have this workaround first
char keycode = (char)keycodeInput;
string keycodeString = KeycodeToString(keycodeInput).ToLower();
Log.Error("Keycode pressed: " + keycodeInput);
Log.Error("Keys pressed: " + keycodeString);

switch (keycodeString)
{
Expand All @@ -2591,6 +2589,12 @@ private void KeyCommandHandler(int keycodeInput)
case "]":
OnSearchAction(SearchAction.ToggleMode);
return;
case "x":
// Skip default fullscreen toggle key if video is playing
if (g_Player.Playing)
return;

break;
}

// Normal keycode matching for everything else
Expand Down

0 comments on commit 7700480

Please sign in to comment.