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
8afd622d
Commit
8afd622d
authored
Feb 27, 2014
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fix page up / page down hotkey support
close #10716
parent
4bec749d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
modules/gui/macosx/StringUtility.m
modules/gui/macosx/StringUtility.m
+7
-5
modules/gui/macosx/simple_prefs.m
modules/gui/macosx/simple_prefs.m
+2
-2
No files found.
modules/gui/macosx/StringUtility.m
View file @
8afd622d
...
...
@@ -139,6 +139,8 @@ static VLCStringUtility *_o_sharedInstance = nil;
/* show non-character keys correctly */
theString
=
[
theString
stringByReplacingOccurrencesOfString
:
@"Right"
withString
:[
NSString
stringWithUTF8String
:
"
\xE2\x86\x92
"
]];
theString
=
[
theString
stringByReplacingOccurrencesOfString
:
@"Left"
withString
:[
NSString
stringWithUTF8String
:
"
\xE2\x86\x90
"
]];
theString
=
[
theString
stringByReplacingOccurrencesOfString
:
@"Page Up"
withString
:[
NSString
stringWithUTF8String
:
"
\xE2\x87\x9E
"
]];
theString
=
[
theString
stringByReplacingOccurrencesOfString
:
@"Page Down"
withString
:[
NSString
stringWithUTF8String
:
"
\xE2\x87\x9F
"
]];
theString
=
[
theString
stringByReplacingOccurrencesOfString
:
@"Up"
withString
:[
NSString
stringWithUTF8String
:
"
\xE2\x86\x91
"
]];
theString
=
[
theString
stringByReplacingOccurrencesOfString
:
@"Down"
withString
:[
NSString
stringWithUTF8String
:
"
\xE2\x86\x93
"
]];
theString
=
[
theString
stringByReplacingOccurrencesOfString
:
@"Enter"
withString
:[
NSString
stringWithUTF8String
:
"
\xe2\x86\xb5
"
]];
...
...
@@ -261,7 +263,11 @@ unsigned int CocoaKeyToVLC(unichar i_key)
#pragma GCC diagnostic ignored "-Wformat"
#endif
if
([
theString
length
]
>
1
)
{
if
([
theString
rangeOfString
:
@"Up"
].
location
!=
NSNotFound
)
if
([
theString
rangeOfString
:
@"Page Up"
].
location
!=
NSNotFound
)
return
[
NSString
stringWithFormat
:
@"%C"
,
NSPageUpFunctionKey
];
else
if
([
theString
rangeOfString
:
@"Page Down"
].
location
!=
NSNotFound
)
return
[
NSString
stringWithFormat
:
@"%C"
,
NSPageDownFunctionKey
];
else
if
([
theString
rangeOfString
:
@"Up"
].
location
!=
NSNotFound
)
return
[
NSString
stringWithFormat
:
@"%C"
,
NSUpArrowFunctionKey
];
else
if
([
theString
rangeOfString
:
@"Down"
].
location
!=
NSNotFound
)
return
[
NSString
stringWithFormat
:
@"%C"
,
NSDownArrowFunctionKey
];
...
...
@@ -277,10 +283,6 @@ unsigned int CocoaKeyToVLC(unichar i_key)
return
[
NSString
stringWithFormat
:
@"%C"
,
NSHomeFunctionKey
];
else
if
([
theString
rangeOfString
:
@"End"
].
location
!=
NSNotFound
)
return
[
NSString
stringWithFormat
:
@"%C"
,
NSEndFunctionKey
];
else
if
([
theString
rangeOfString
:
@"Pageup"
].
location
!=
NSNotFound
)
return
[
NSString
stringWithFormat
:
@"%C"
,
NSPageUpFunctionKey
];
else
if
([
theString
rangeOfString
:
@"Pagedown"
].
location
!=
NSNotFound
)
return
[
NSString
stringWithFormat
:
@"%C"
,
NSPageDownFunctionKey
];
else
if
([
theString
rangeOfString
:
@"Menu"
].
location
!=
NSNotFound
)
return
[
NSString
stringWithFormat
:
@"%C"
,
NSMenuFunctionKey
];
else
if
([
theString
rangeOfString
:
@"Tab"
].
location
!=
NSNotFound
)
...
...
modules/gui/macosx/simple_prefs.m
View file @
8afd622d
...
...
@@ -1585,9 +1585,9 @@ static inline void save_string_list(intf_thread_t * p_intf, id object, const cha
else
if
(
key
==
NSEndFunctionKey
)
[
tempString
appendString
:
@"End"
];
else
if
(
key
==
NSPageUpFunctionKey
)
[
tempString
appendString
:
@"Page
u
p"
];
[
tempString
appendString
:
@"Page
U
p"
];
else
if
(
key
==
NSPageDownFunctionKey
)
[
tempString
appendString
:
@"Page
d
own"
];
[
tempString
appendString
:
@"Page
D
own"
];
else
if
(
key
==
NSMenuFunctionKey
)
[
tempString
appendString
:
@"Menu"
];
else
if
(
key
==
NSTabCharacter
)
...
...
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