Skip to content

Commit bbb9037

Browse files
author
Ravbug
committed
Show focused state
1 parent a744ac4 commit bbb9037

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

RavEngine

Samples/Flags/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <ravengine_shader_defs.h>
1313
#include <RavEngine/StartApp.hpp>
1414
#include <RavEngine/MeshCollection.hpp>
15+
#include <RmlUi/Core.h>
1516

1617
using namespace RavEngine;
1718
using namespace std;

Samples/GUI/ui/sink.rml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
#scoreboard{
1313
font-size:40dp;
1414
}
15+
button, input, select, option{
16+
focus: auto;
17+
nav-up: auto;
18+
nav-down: auto;
19+
tab-index: auto;
20+
}
21+
input:focus, select:focus, option:focus, button:focus {
22+
border-color: blue;
23+
}
1524
</style>
1625
</head>
1726
<body>
@@ -42,6 +51,7 @@
4251
Another button
4352
</button>
4453
<input style="width:100%" value="Type in me!"></input>
54+
<input style="width:100%" value="Type in me 2!"></input>
4555
</p>
4656
<br></br>
4757
<p>

0 commit comments

Comments
 (0)