YifePlayte / MaxMiPad

Provide some enhancements to Mi Pad
GNU General Public License v3.0
80 stars 5 forks source link

Disable only one of the hold gestures. #6

Open Vader77Darth opened 1 year ago

Vader77Darth commented 1 year ago

At the moment, you can only disable both hold gestures. I only want to disable the notes button. It would be cool if we could choose to disable each shortcut individually.

YifePlayte commented 1 year ago

It's not very easy to implement, because MIUI determines if a key event should be intercepted before determining which key it is. Maybe you can try a module like Xposed Edge to remap the key behavior. (The region screenshot behavior of the original Xposed Edge doesn't apply to MIUI though, you can map the long press of the region screenshot button to Meta+Shift+A, which is the default region screenshot shortcut provided by MIUI)

Vader77Darth commented 1 year ago

I see. Maybe, a future version could remap the buttons. In the mean time, I will try xposed edge.

Vader77Darth commented 1 year ago

Your suggestion works like a charm.

s2kaka commented 1 year ago

There is an issue on my mipad 6 ignore long press button on xiaomi stylus 2 is not working. Bluetooth funtion is work. Miui 14.0.7 CN

Vader77Darth commented 1 year ago

Rip. I can still disable it on my Xiaomi smart pen second generation. Xiaomi Pad 5 running MIUI 14 TKXEUXM

YifePlayte commented 1 year ago

There is an issue on my mipad 6 ignore long press button on xiaomi stylus 2 is not working. Bluetooth funtion is work. Miui 14.0.7 CN

Fixed.

s2kaka commented 1 year ago

There is an issue on my mipad 6 ignore long press button on xiaomi stylus 2 is not working. Bluetooth funtion is work. Miui 14.0.7 CN

Fixed.

Thank you for your support