Add VTOY_DEFAULT_KBD_LAYOUT in global control plugin

This commit is contained in:
longpanda
2021-03-24 22:08:10 +08:00
parent a63a41f79d
commit 2e10aabe94
18 changed files with 1750 additions and 11 deletions

View File

@@ -32,6 +32,7 @@
*save_env: loadenv
*search: search
*serial: serial
*set_keyboard_layout: setkey
*setkey: setkey
*sha1sum: hashsum
*sha256sum: hashsum

View File

@@ -1,7 +1,7 @@
videotest: font video gfxmenu
setkey: extcmd
odc: archelp
loopback: extcmd
setkey: extcmd
macho:
gcry_des: crypto
memrw: extcmd

View File

@@ -1,5 +1,5 @@
source $prefix/keyboard.cfg.gz
source $prefix/keyboard.cfg
submenu "Resolution Configuration" --class=debug_resolution {
menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {

View File

@@ -1749,6 +1749,9 @@ else
terminal_output gfxterm
fi
if [ -n "$VTOY_DEFAULT_KBD_LAYOUT" ]; then
set_keyboard_layout "$VTOY_DEFAULT_KBD_LAYOUT"
fi
if [ -n "$VTOY_PLUGIN_SYNTAX_ERROR" ]; then
clear

View File

@@ -43,6 +43,7 @@
*save_env: loadenv
*search: search
*serial: serial
*set_keyboard_layout: setkey
*setkey: setkey
*setpci: setpci
*sha1sum: hashsum

View File

@@ -1,7 +1,7 @@
videotest: font video gfxmenu
setkey: extcmd
odc: archelp
loopback: extcmd
setkey: extcmd
macho:
gcry_des: crypto
memrw: extcmd

View File

@@ -47,6 +47,7 @@
*search: search
*sendkey: sendkey
*serial: serial
*set_keyboard_layout: setkey
*setkey: setkey
*setpci: setpci
*sha1sum: hashsum

View File

@@ -1,7 +1,7 @@
videotest: font video gfxmenu
setkey: extcmd
odc: archelp
loopback: extcmd
setkey: extcmd
macho:
gcry_des: crypto
memrw: extcmd

62
INSTALL/grub/keyboard.cfg Normal file
View File

@@ -0,0 +1,62 @@
submenu "Keyboard Layouts" --class=debug_krdlayout {
menuentry QWERTY_USA --class=debug_kbd {
set_keyboard_layout QWERTY_USA
}
menuentry AZERTY --class=debug_kbd {
set_keyboard_layout AZERTY
}
menuentry CZECH_QWERTY --class=debug_kbd {
set_keyboard_layout CZECH_QWERTY
}
menuentry CZECH_QWERTZ --class=debug_kbd {
set_keyboard_layout CZECH_QWERTZ
}
menuentry DANISH --class=debug_kbd {
set_keyboard_layout DANISH
}
menuentry DVORAK_USA --class=debug_kbd {
set_keyboard_layout DVORAK_USA
}
menuentry FRENCH --class=debug_kbd {
set_keyboard_layout FRENCH
}
menuentry GERMAN --class=debug_kbd {
set_keyboard_layout GERMAN
}
menuentry ITALIANO --class=debug_kbd {
set_keyboard_layout ITALIANO
}
menuentry JAPAN_106 --class=debug_kbd {
set_keyboard_layout JAPAN_106
}
menuentry LATIN_USA --class=debug_kbd {
set_keyboard_layout LATIN_USA
}
menuentry PORTU_BRAZIL --class=debug_kbd {
set_keyboard_layout PORTU_BRAZIL
}
menuentry QWERTY_UK --class=debug_kbd {
set_keyboard_layout QWERTY_UK
}
menuentry QWERTZ --class=debug_kbd {
set_keyboard_layout QWERTZ
}
menuentry QWERTZ_HUN --class=debug_kbd {
set_keyboard_layout QWERTZ_HUN
}
menuentry QWERTZ_SLOV_CROAT --class=debug_kbd {
set_keyboard_layout QWERTZ_SLOV_CROAT
}
menuentry SPANISH --class=debug_kbd {
set_keyboard_layout SPANISH
}
menuentry SWEDISH --class=debug_kbd {
set_keyboard_layout SWEDISH
}
menuentry TURKISH_Q --class=debug_kbd {
set_keyboard_layout TURKISH_Q
}
menuentry VIETNAMESE --class=debug_kbd {
set_keyboard_layout VIETNAMESE
}
}

Binary file not shown.

Binary file not shown.

View File

@@ -43,6 +43,7 @@
*save_env: loadenv
*search: search
*serial: serial
*set_keyboard_layout: setkey
*setkey: setkey
*setpci: setpci
*sha1sum: hashsum

View File

@@ -1,7 +1,7 @@
videotest: font video gfxmenu
setkey: extcmd
odc: archelp
loopback: extcmd
setkey: extcmd
macho:
gcry_des: crypto
memrw: extcmd