Skip to content

Commit

Permalink
Added better error messages when keyboard layout is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoHood committed Apr 8, 2021
1 parent 7e37414 commit f2a8d76
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/KeyboardLayouts/ImprovedKeylayouts.h
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,9 @@ static const uint16_t _asciimap[] PROGMEM =
#if defined(LAYOUT_US_ENGLISH)
#include "ImprovedKeylayoutsUS.h"
#elif defined(LAYOUT_CANADIAN_FRENCH)
#error Keyboard layout not yet supported. Feel free to open a PR to add a new layout.
#elif defined(LAYOUT_CANADIAN_MULTILINGUAL)
#error Keyboard layout not yet supported. Feel free to open a PR to add a new layout.
#elif defined(LAYOUT_DANISH)
#include "ImprovedKeylayoutsDK.h"
#elif defined(LAYOUT_FINNISH)
Expand All @@ -674,9 +676,11 @@ static const uint16_t _asciimap[] PROGMEM =
#elif defined(LAYOUT_GERMAN)
#include "ImprovedKeylayoutsDE.h"
#elif defined(LAYOUT_GERMAN_MAC)
#error Keyboard layout not yet supported. Feel free to open a PR to add a new layout.
#elif defined(LAYOUT_GERMAN_SWISS)
#include "ImprovedKeylayoutsCH.h"
#elif defined(LAYOUT_ICELANDIC)
#error Keyboard layout not yet supported. Feel free to open a PR to add a new layout.
#elif defined(LAYOUT_IRISH)
// Is this any different from the UK layout?
#include "ImprovedKeylayoutsUK.h"
Expand All @@ -687,13 +691,19 @@ static const uint16_t _asciimap[] PROGMEM =
#elif defined(LAYOUT_PORTUGUESE)
#include "ImprovedKeylayoutsPT.h"
#elif defined(LAYOUT_PORTUGUESE_BRAZILIAN)
#error Keyboard layout not yet supported. Feel free to open a PR to add a new layout.
#elif defined(LAYOUT_SPANISH)
#include "ImprovedKeylayoutsES.h"
#include "ImprovedKeylayoutsES.h"
#elif defined(LAYOUT_SPANISH_LATIN_AMERICA)
#error Keyboard layout not yet supported. Feel free to open a PR to add a new layout.
#elif defined(LAYOUT_SWEDISH)
#include "ImprovedKeylayoutsSE.h"
#elif defined(LAYOUT_TURKISH)
#error Keyboard layout not yet supported. Feel free to open a PR to add a new layout.
#elif defined(LAYOUT_UNITED_KINGDOM)
#include "ImprovedKeylayoutsUK.h"
#elif defined(LAYOUT_US_INTERNATIONAL)
#error Keyboard layout not yet supported. Feel free to open a PR to add a new layout.
#else
#error Keyboard layout not yet supported. Feel free to open a PR to add a new layout.
#endif

0 comments on commit f2a8d76

Please sign in to comment.