Skip to content

Commit f24bf93

Browse files
authored
Merge pull request #3451 from karanBRAVO/feat/3450
[#3450] change text-size using arrow-keys
2 parents f9689fe + 3c45d46 commit f24bf93

File tree

1 file changed

+7
-0
lines changed
  • client/modules/IDE/components/Preferences

1 file changed

+7
-0
lines changed

client/modules/IDE/components/Preferences/index.jsx

+7
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,13 @@ export default function Preferences() {
249249
onClick={() => {
250250
fontSizeInputRef.current?.select();
251251
}}
252+
onKeyDown={(event) => {
253+
if (event.key === 'ArrowUp') {
254+
increaseFontSize();
255+
} else if (event.key === 'ArrowDown') {
256+
decreaseFontSize();
257+
}
258+
}}
252259
/>
253260
</form>
254261
<button

0 commit comments

Comments
 (0)