Apply minor fixes

This commit is contained in:
Dean Herbert 2018-03-21 15:40:43 +09:00
parent 9a5e464c99
commit 63f0419d6a

View File

@ -51,7 +51,7 @@ namespace osu.Game.Screens.Edit.Screens.Compose
{ {
new Drawable[] new Drawable[]
{ {
new TickSliderBar(beatDivisor, 1, 2, 3, 4, 6, 8, 12, 16) new TickSliderBar(beatDivisor, BindableBeatDivisor.VALID_DIVISORS)
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
} }
@ -216,11 +216,10 @@ namespace osu.Game.Screens.Edit.Screens.Compose
{ {
} }
public override bool HandleKeyboardInput => IsHovered && !CurrentNumber.Disabled;
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args) protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
{ {
if (!IsHovered || CurrentNumber.Disabled)
return false;
switch (args.Key) switch (args.Key)
{ {
case Key.Right: case Key.Right: