Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
fe4a2f20
Commit
fe4a2f20
authored
Jul 01, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: fix F* keys in Preferences - #3827
KEY_F* are not consequential, while Qt::Key_F* are Close #3827
parent
0e5461f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
modules/gui/qt4/util/customwidgets.cpp
modules/gui/qt4/util/customwidgets.cpp
+13
-4
No files found.
modules/gui/qt4/util/customwidgets.cpp
View file @
fe4a2f20
...
...
@@ -275,7 +275,19 @@ static const vlc_qt_key_t keys[] =
// Qt::Key_CapsLock
// Qt::Key_NumLock
// Qt::Key_ScrollLock
/* F1 - F35 */
/* F1 - F35 - Qt goes to F35, VLC stops at F12 */
{
Qt
::
Key_F1
,
KEY_F1
},
{
Qt
::
Key_F2
,
KEY_F2
},
{
Qt
::
Key_F3
,
KEY_F3
},
{
Qt
::
Key_F4
,
KEY_F4
},
{
Qt
::
Key_F5
,
KEY_F5
},
{
Qt
::
Key_F6
,
KEY_F6
},
{
Qt
::
Key_F7
,
KEY_F7
},
{
Qt
::
Key_F8
,
KEY_F8
},
{
Qt
::
Key_F9
,
KEY_F9
},
{
Qt
::
Key_F10
,
KEY_F10
},
{
Qt
::
Key_F11
,
KEY_F11
},
{
Qt
::
Key_F12
,
KEY_F12
},
// Qt::Key_Super_L
// Qt::Key_Super_R
{
Qt
::
Key_Menu
,
KEY_MENU
},
...
...
@@ -385,9 +397,6 @@ int qtEventToVLCKey( QKeyEvent *e )
#else
# error FIXME
#endif
else
/* Qt and X11 go to F35, but VLC stops at F12 */
if
(
qtk
>=
Qt
::
Key_F1
&&
qtk
<=
Qt
::
Key_F12
)
i_vlck
=
qtk
-
Qt
::
Key_F1
+
KEY_F1
;
else
{
const
vlc_qt_key_t
*
map
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment