We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2cf65c commit 31bd32fCopy full SHA for 31bd32f
src/keyboard/Keyboard.tsx
@@ -131,15 +131,11 @@ export default function Keyboard() {
131
const conn = useContext(ConnectionContext);
132
133
useEffect(() => {
134
- if (!conn) {
135
- return;
136
- }
137
-
138
async function performSetRequest() {
139
if (!conn) { return; }
140
141
let resp = await call_rpc(conn, { keymap: { setActivePhysicalLayout: selectedPhysicalLayoutIndex }});
142
+
143
if (!resp?.keymap?.setActivePhysicalLayout) {
144
console.error("Failed to set the active physical layout to ", selectedPhysicalLayoutIndex);
145
}
0 commit comments