tdesktop/Telegram/SourceFiles/media/player
Ilya Fedin 86be105c25 Media Play key is expected to behave like Toggle Media Play/Pause
Looks like Qt maps "Media Play" to the common play/pause button on keyboards:
https://github.com/qt/qtbase/blob/5.15/src/platformsupport/input/xkbcommon/qxkbcommon.cpp#L293
https://github.com/qt/qtbase/blob/5.15/src/plugins/platforms/windows/qwindowskeymapper.cpp#L392
https://github.com/qt/qtbase/blob/5.15/src/plugins/platforms/android/androidjniinput.cpp#L519
https://github.com/qt/qtbase/blob/5.15/src/plugins/platforms/android/androidjniinput.cpp#L607

While "Toggle Media Play/Pause" is some special case:
https://github.com/qt/qtbase/blob/5.15/src/plugins/platforms/windows/qwindowskeymapper.cpp#L488
https://github.com/qt/qtbase/blob/5.15/src/plugins/platforms/ios/quiview.mm#L584

It is worth to behave on "Media Play" like on "Toggle Media Play/Pause".
2020-12-08 21:20:26 +03:00
..
media_player.style Use lib_ui from submodule. 2019-10-19 12:27:28 +04:00
media_player_button.cpp Use new animations engine everywhere. 2019-04-02 14:33:53 +04:00
media_player_button.h Use new animations engine everywhere. 2019-04-02 14:33:53 +04:00
media_player_float.cpp Implement message bar with animations. 2020-10-30 18:32:17 +03:00
media_player_float.h Allow float video player across accounts. 2020-06-25 18:17:37 +04:00
media_player_instance.cpp Media Play key is expected to behave like Toggle Media Play/Pause 2020-12-08 21:20:26 +03:00
media_player_instance.h Stop playing documents when items are deleted. 2020-10-23 15:22:38 +03:00
media_player_panel.cpp Try to workaround MSVC compiler bug. 2020-10-31 15:14:34 +03:00
media_player_panel.h Rename Window::Controller to Window::SessionController. 2019-06-06 13:21:40 +03:00
media_player_volume_controller.cpp Change button round radius. 2020-12-08 11:19:23 +04:00
media_player_volume_controller.h Move a lot of settings to Core::Settings. 2020-06-23 21:53:42 +04:00
media_player_widget.cpp Move some text formatting to tg_ui:ui/text/format_values. 2020-09-30 16:29:17 +03:00
media_player_widget.h Move session data localstorage -> storage_account. 2020-06-23 21:53:39 +04:00