Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
audacity-kr-font
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hwanyong Lee
audacity-kr-font
Commits
ad26c35d
Commit
ad26c35d
authored
Apr 30, 2019
by
Paul Licameli
Committed by
James Crook
May 1, 2019
Browse files
Options
Downloads
Patches
Plain Diff
Fix Tab key navigation on Mac in presence of static boxes
parent
2ba17c78
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/ShuttleGui.cpp
+1
-3
1 addition, 3 deletions
src/ShuttleGui.cpp
src/ShuttleGui.h
+16
-0
16 additions, 0 deletions
src/ShuttleGui.h
src/import/ImportPCM.cpp
+2
-1
2 additions, 1 deletion
src/import/ImportPCM.cpp
with
19 additions
and
4 deletions
src/ShuttleGui.cpp
+
1
−
3
View file @
ad26c35d
...
...
@@ -783,8 +783,6 @@ wxMenu * ShuttleGuiBase::AddMenu( const wxString & Title )
return
mpMenu
;
}
/// Starts a static box around a number of controls.
/// @param Str The text of the title for the box.
/// @param iProp The resizing proportion value.
...
...
@@ -795,7 +793,7 @@ wxStaticBox * ShuttleGuiBase::StartStatic(const wxString &Str, int iProp)
UseUpId
();
if
(
mShuttleMode
!=
eIsCreating
)
return
NULL
;
wxStaticBox
*
pBox
=
safenew
wxStaticBox
(
GetParent
(),
miId
,
wxStaticBox
*
pBox
=
safenew
wxStaticBox
Wrapper
(
GetParent
(),
miId
,
Str
);
pBox
->
SetLabel
(
Str
);
pBox
->
SetName
(
wxStripMenuCodes
(
Str
));
...
...
This diff is collapsed.
Click to expand it.
src/ShuttleGui.h
+
16
−
0
View file @
ad26c35d
...
...
@@ -78,6 +78,21 @@ class Shuttle;
class
WrappedType
;
#ifdef __WXMAC__
#include
<wx/statbox.h>
// to inherit
class
wxStaticBoxWrapper
:
public
wxStaticBox
// inherit to get access to m_container
{
public:
template
<
typename
...
Args
>
wxStaticBoxWrapper
(
Args
&&
...
args
)
:
wxStaticBox
(
std
::
forward
<
Args
>
(
args
)...
)
{
m_container
.
EnableSelfFocus
();
}
};
/// Fix a defect in TAB key navigation to sliders, known to happen in wxWidgets
/// 3.1.1 and maybe in earlier versions
class
wxSliderWrapper
:
public
wxSlider
...
...
@@ -87,6 +102,7 @@ public:
void
SetFocus
()
override
;
};
#else
using
wxStaticBoxWrapper
=
wxStaticBox
;
using
wxSliderWrapper
=
wxSlider
;
#endif
...
...
This diff is collapsed.
Click to expand it.
src/import/ImportPCM.cpp
+
2
−
1
View file @
ad26c35d
...
...
@@ -52,6 +52,7 @@
#include
"../FileFormats.h"
#include
"../Prefs.h"
#include
"../ShuttleGui.h"
#include
"../WaveTrack.h"
#include
"ImportPlugin.h"
...
...
@@ -278,7 +279,7 @@ static wxString AskCopyOrEdit()
vbox
->
Add
(
message
,
1
,
wxALL
|
wxEXPAND
,
10
);
wxStaticBox
*
box
=
safenew
wxStaticBox
(
&
dialog
,
-
1
,
_
(
"Choose an import method"
));
wxStaticBox
*
box
=
safenew
wxStaticBox
Wrapper
(
&
dialog
,
-
1
,
_
(
"Choose an import method"
));
box
->
SetName
(
box
->
GetLabel
());
wxRadioButton
*
aliasRadio
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment