[Android] Add shift modifiers for video player arrows key events

Nicolas Pomepuy git at videolan.org
Tue Oct 5 05:13:04 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Sep 29 08:18:26 2021 +0200| [a2d19bd085d1268f7b3233af1f104ac0334300e9] | committer: Nicolas Pomepuy

Add shift modifiers for video player arrows key events

Related to #458

> https://code.videolan.org/videolan/vlc-android/commit/a2d19bd085d1268f7b3233af1f104ac0334300e9
---

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt         | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
index 243dfec78..50d9ccfd6 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
@@ -1001,6 +1001,10 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
                 } else if (!isShowing && !overlayDelegate.playlistContainer.isVisible()) {
                     if (event.isAltPressed && event.isCtrlPressed) {
                         touchDelegate.seekDelta(-300000)
+                    } else if (event.isShiftPressed && event.isCtrlPressed) {
+                        touchDelegate.seekDelta(-30000)
+                    } else if (event.isShiftPressed) {
+                        touchDelegate.seekDelta(-5000)
                     } else if (event.isCtrlPressed) {
                         touchDelegate.seekDelta(-60000)
                     } else if (fov == 0f)
@@ -1018,6 +1022,10 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
                 } else if (!isShowing && !overlayDelegate.playlistContainer.isVisible()) {
                     if (event.isAltPressed && event.isCtrlPressed) {
                         touchDelegate.seekDelta(300000)
+                    } else if (event.isShiftPressed && event.isCtrlPressed) {
+                        touchDelegate.seekDelta(30000)
+                    } else if (event.isShiftPressed) {
+                        touchDelegate.seekDelta(5000)
                     } else if (event.isCtrlPressed) {
                         touchDelegate.seekDelta(60000)
                     } else if (fov == 0f)



More information about the Android mailing list