this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix issue with alt+1 on certain layouts (#2665)

authored by

Alice and committed by
GitHub
1b359351 52467ab2

+8 -1
+8 -1
src/studio/studio.c
··· 1828 1828 else if(studio->mode != TIC_RUN_MODE && studio->config->data.keyboardLayout != tic_layout_azerty) 1829 1829 { 1830 1830 if(keyWasPressedOnce(studio, tic_key_grave)) setStudioMode(studio, TIC_CONSOLE_MODE); 1831 - else if(keyWasPressedOnce(studio, tic_key_1)) setStudioMode(studio, TIC_CODE_MODE); 1831 + else if(keyWasPressedOnce(studio, tic_key_1)) 1832 + { 1833 + if(studio->mode != TIC_CODE_MODE) 1834 + { 1835 + setStudioMode(studio, TIC_CODE_MODE); 1836 + setJustSwitchedToCodeMode(studio, true); 1837 + } 1838 + } 1832 1839 else if(keyWasPressedOnce(studio, tic_key_2)) setStudioMode(studio, TIC_SPRITE_MODE); 1833 1840 else if(keyWasPressedOnce(studio, tic_key_3)) setStudioMode(studio, TIC_MAP_MODE); 1834 1841 else if(keyWasPressedOnce(studio, tic_key_4)) setStudioMode(studio, TIC_SFX_MODE);