diff options
author | John Ankarström <john@ankarstrom.se> | 2022-03-02 21:55:57 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-03-02 21:55:57 +0100 |
commit | 170e048f4ceb11633b62cfcc5b82df6a5aa9c27b (patch) | |
tree | 62ae2a9c4fb672d6cd61d640342381ee3a747937 /c/episodelistview.c | |
parent | 85cf754ff86c053c4f7a34b57b1528c0cf655b35 (diff) | |
download | EpisodeBrowser-170e048f4ceb11633b62cfcc5b82df6a5aa9c27b.tar.gz |
Open episode on Enter, but in a better way.
Diffstat (limited to 'c/episodelistview.c')
-rw-r--r-- | c/episodelistview.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/c/episodelistview.c b/c/episodelistview.c index cf6f392..ea1d627 100644 --- a/c/episodelistview.c +++ b/c/episodelistview.c @@ -36,18 +36,6 @@ ElvCreate() return HElv; } -void -ElvEnter(LPLVITEM lpLvi) -{ - fid_t f; - term_t t; - F(f); - t = T(1); - PI(t+0, lpLvi->lParam) goto b; - P("local_episodes","open_episode",1,t); -b: Fd(f); -} - LRESULT ElvHandleNotify(LPARAM lParam) { @@ -82,8 +70,17 @@ ElvHandleNotify(LPARAM lParam) break; } case NM_DBLCLK: - ElvEnter(LpLviElvSelection); + case NM_RETURN: + { + fid_t f; + term_t t; + F(f); + t = T(1); + PI(t+0, LpLviElvSelection->lParam) goto b; + P("local_episodes","open_episode",1,t); +b: Fd(f); break; + } case NM_RCLICK: { DWORD dwPos; @@ -98,7 +95,6 @@ ElvHandleNotify(LPARAM lParam) return 0; } - void ElvRedraw() { |