From f2a5b78b51fe77e90c388b77fd84d00ff0bfc054 Mon Sep 17 00:00:00 2001 From: "roman.artiukhin" Date: Sun, 29 Jan 2023 14:50:34 +0200 Subject: [PATCH] Sansa Clip keymap: Playlist on short Down press and Hotkey on long Down press in WPS Change-Id: I39a01df90b658d76b9cf2f94d9a81a4f7ff076cf --- apps/keymaps/keymap-clip.c | 4 ++-- manual/platform/keymap-sansaclip.tex | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/keymaps/keymap-clip.c b/apps/keymaps/keymap-clip.c index 494c9a734c..59ee080364 100644 --- a/apps/keymaps/keymap-clip.c +++ b/apps/keymaps/keymap-clip.c @@ -84,9 +84,9 @@ static const struct button_mapping button_context_wps[] = { { ACTION_WPS_ID3SCREEN, BUTTON_SELECT|BUTTON_DOWN, BUTTON_SELECT }, #ifdef HAVE_HOTKEY /* down|repeat doesn't work in the file browser */ - { ACTION_WPS_HOTKEY, BUTTON_DOWN, BUTTON_NONE }, + { ACTION_WPS_HOTKEY, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_DOWN }, #endif - { ACTION_WPS_VIEW_PLAYLIST, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, + { ACTION_WPS_VIEW_PLAYLIST, BUTTON_DOWN|BUTTON_REL, BUTTON_DOWN }, #ifndef HAS_BUTTON_HOLD /* Clip+ */ { ACTION_STD_KEYLOCK, BUTTON_HOME|BUTTON_SELECT, BUTTON_NONE }, diff --git a/manual/platform/keymap-sansaclip.tex b/manual/platform/keymap-sansaclip.tex index 29cb74dcc2..3e9f993eb6 100644 --- a/manual/platform/keymap-sansaclip.tex +++ b/manual/platform/keymap-sansaclip.tex @@ -40,9 +40,9 @@ \newcommand{\ActionWpsContext}{Long \ButtonSelect} \newcommand{\ActionWpsBrowse}{\ButtonSelect} \newcommand{\ActionWpsPitchScreen}{Long \ButtonUp} -\newcommand{\ActionWpsPlaylist}{Long \ButtonDown} +\newcommand{\ActionWpsPlaylist}{\ButtonDown} \newcommand{\ActionWpsIdThreeScreen}{\ButtonSelect{} + \ButtonDown} -\newcommand{\ActionWpsHotkey}{\ButtonDown} +\newcommand{\ActionWpsHotkey}{Long \ButtonDown} \newcommand{\ActionWpsAbSetBNextDir}{\ButtonPower{} + \ButtonRight} \newcommand{\ActionWpsAbSetAPrevDir}{\ButtonPower{} + \ButtonLeft}