123 Star 0 Fork 10

src-openEuler/console-setup

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
console-setup-1.84-ctrll-lock.patch 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
starlet_dx 提交于 2023-04-17 17:19 . Update to 1.218
diff -up console-setup/Keyboard/ckbcomp.orig console-setup/Keyboard/ckbcomp
--- console-setup/Keyboard/ckbcomp.orig 2023-01-05 09:43:41.059205282 +0100
+++ console-setup/Keyboard/ckbcomp 2023-01-05 09:44:49.789082563 +0100
@@ -204,10 +204,6 @@ my %acmtable; # Unicode -> legacy code (
my $KEYMAP = ''; # This variable contains the generated keymap
-my $broken_caps = 0; # In unicode mode Caps_Lock doesn't work for non-ASCII
- # letters. 1 = the keymap contains non-ascii letters.
- # See http://bugzilla.kernel.org/show_bug.cgi?id=7746#c21
-
my %keycodes_table; # x keysym -> x key code
my %aliases; # x keysym -> x keysym
@@ -4400,9 +4396,6 @@ sub print_vector {
my $u = ord (uc (pack ("U", $v)));
my $c = ($v == $l ? $u : $l);
$capsvector[$mask] = $1 ."U+". sprintf ("%04x", $c);
- if ($v != $c && $v > 0x7f) {
- $broken_caps = 1;
- }
}
}
if ($no_NoSymbol) {
@@ -4800,10 +4793,6 @@ keycode 127 =
die "$0: Unsupported keyboard type $arch\n";
}
-if ($broken_caps) {
- $KEYMAP =~ s/Caps_Lock/CtrlL_Lock/g;
-}
-
print $KEYMAP;
if (!$compose_charmap && $charmap) {
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/console-setup.git
[email protected]:src-openeuler/console-setup.git
src-openeuler
console-setup
console-setup
master

搜索帮助