Skip to content

Commit

Permalink
Merge pull request #4390 from nanshiki/keylayoutjp
Browse files Browse the repository at this point in the history
Fixed keyboardlayout=jp to be Japanese keyboard layout.
  • Loading branch information
joncampbell123 committed Jul 30, 2023
2 parents 1be510b + cf8bd0f commit 2615e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dos/dos_keyboard_layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1712,7 +1712,7 @@ class DOS_KeyboardLayout: public Module_base {
}
}
if (tocp && !IS_PC98_ARCH) {
if(dos.loaded_codepage == 932 && !strcmp(layoutname, "jp106")) loaded_layout->read_keyboard_file(layoutname, dos.loaded_codepage);
if((dos.loaded_codepage == 932 || tocp == 932) && (!strcmp(layoutname, "jp106") || !strcmp(layoutname, "jp"))) loaded_layout->read_keyboard_file(layoutname, 932);

uint16_t cpbak = dos.loaded_codepage;
#if defined(USE_TTF)
Expand Down

0 comments on commit 2615e65

Please sign in to comment.