85 |
86 | {Array.isArray(keys) ? (
87 | <>
88 | Type or press
89 | {keys.map((k, i) => (
90 |
91 |
99 | {k.includes(' ') ? k.replace(/\s+?/gim, '') : k}
100 |
101 | {i < keys.length - 1 ? ' or ' : null}
102 |
103 | ))}
104 | to trigger the callback
105 | >
106 | ) : keys.includes(',') ? (
107 | <>
108 | Type or press
109 | {keys.split(',').map((k, i) => (
110 |
111 |
119 | {k.includes(' ') ? k.replace(/\s+?/gim, '') : k}
120 |
121 | {i < keys.split(',').length - 1 ? ' or ' : null}
122 |
123 | ))}
124 | to trigger the callback
125 | >
126 | ) : keys.includes('+') ? (
127 | <>
128 | Press
129 |
137 | {keys.includes(' ') ? keys.replace(/\s+?/gim, '') : keys}
138 |
139 | to trigger the callback
140 | >
141 | ) : (
142 | <>
143 | Type
144 |
152 | {keys.includes(' ') ? keys.replace(/\s+?/gim, '') : keys}
153 |
154 | to trigger the callback
155 | >
156 | )}
157 |
158 | {children}
159 |