Skip to content

Commit 86d2c86

Browse files
committed
Handle "transparent" behavior
1 parent 222b91e commit 86d2c86

2 files changed

Lines changed: 14 additions & 10 deletions

File tree

src-tauri/src/transport/commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};
99
use tauri::ipc::InvokeBody;
1010
use tauri::{
1111
command,
12-
ipc::{Request},
12+
ipc::Request,
1313
State,
1414
};
1515

src/keyboard/KeymapBindingChildren.tsx

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ const renderIndicator = (numbers: 0|1|2|3 = 1): JSX.Element => (
2121
);
2222

2323
export const getBindingChildren = (
24-
header: string,
24+
behavior: string,
2525
binding: KeyBinding,
2626
): JSX.Element | JSX.Element[] => {
27-
if (header === "Layer-Tap") {
27+
if (behavior === "Layer-Tap") {
2828
return [
2929
<div className="relative text-sm">
3030
{renderIndicator(1)}
@@ -40,7 +40,7 @@ export const getBindingChildren = (
4040
];
4141
}
4242

43-
if (header === "Mod-Tap") {
43+
if (behavior === "Mod-Tap") {
4444
return [
4545
<div className="relative">
4646
{renderIndicator(1)}
@@ -55,13 +55,17 @@ export const getBindingChildren = (
5555
];
5656
}
5757

58+
if (behavior === "Transparent") {
59+
return (
60+
<div className="relative text-xs">
61+
62+
</div>
63+
);
64+
}
65+
5866
return (
59-
<div className="relative">
60-
<span className="text-base">
61-
<HidUsageLabel
62-
hid_usage={binding.param1}
63-
/>
64-
</span>
67+
<div className="relative text-base">
68+
<HidUsageLabel hid_usage={binding.param1}/>
6569
</div>
6670
);
6771
};

0 commit comments

Comments
 (0)