PCL2 icon indicating copy to clipboard operation
PCL2 copied to clipboard

模组管理页面支持进入便能直接按Ctrl+A全选,而非先对右侧作任意操作再Ctrl+A全选

Open Louis-Harsune opened this issue 1 year ago • 7 comments

检查项

描述

不知为何,进入模组管理页面后不能直接按Ctrl+A全选模组(直接按组合键没反应),而是得先对右侧页面作任意操作(比如对列表空白处单击),然后才能通过Ctrl+A全选模组。

原因

一般来说,模组管理页面按Ctrl+A对应的操作就是全选模组,但是得先点击Mod列表才能全选,会对操作带来困扰。

Louis-Harsune avatar Jul 21 '24 05:07 Louis-Harsune

神奇……

MoYuan-CN avatar Jul 21 '24 05:07 MoYuan-CN

I tried it and after entering this interface, I need to click any element in the interface to trigger Ctrl+A.

我尝试了一下,进入这个界面后需要点击界面内任意元素才可以触发 Ctrl+A。

EDIT: Except search box. 除了搜索框。

3gf8jv4dv avatar Jul 21 '24 05:07 3gf8jv4dv

~~如果是窗口未激活,那么要怎么检测快捷键?~~

allMagicNB avatar Jul 21 '24 05:07 allMagicNB

I tried it and after entering this interface, I need to click any element in the interface to trigger Ctrl+A.

我尝试了一下,进入这个界面后需要点击界面内任意元素才可以触发 Ctrl+A。

EDIT: Except search box. 除了搜索框。

点左侧页面列表也是无效的……

Louis-Harsune avatar Jul 21 '24 05:07 Louis-Harsune

点左侧页面列表也是无效的……

Maybe I did not make it clear, I was referring to the interface on the right at first.

一开始没说清楚,我指的是右侧的 Mod 管理 界面。

3gf8jv4dv avatar Jul 21 '24 05:07 3gf8jv4dv

应该是自定义 Ctrl+A 事件绑定时机不太对导致的

MoYuan-CN avatar Jul 21 '24 05:07 MoYuan-CN

进入页面后,焦点仍然在上一次点击的Left控件上。

Silverteal avatar Jul 21 '24 13:07 Silverteal

...所以啥情况?

copytiao avatar Jun 17 '25 01:06 copytiao

我在 PR 下对龙猫的反馈做了回复,先等龙猫看看那条 comment。

Open-KFC avatar Jun 17 '25 01:06 Open-KFC

umm 一个比较好的方案是,如果焦点在搜索框,并且搜索框是空的,这时候按 Ctrl+A 就全选(

LTCatt avatar Jun 17 '25 06:06 LTCatt

cc @LTCatt Image

Open-KFC avatar Jun 17 '25 07:06 Open-KFC