mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 11:06:57 +00:00
feat: mobile, key help tool, more keys (#10068)
* feat: mobile, key help tool, vk_enter Signed-off-by: fufesou <linlong1266@gmail.com> * Mobile, add more function keys Signed-off-by: fufesou <linlong1266@gmail.com> * Mobile, more virtual function keys Signed-off-by: fufesou <linlong1266@gmail.com> * uinput, menu maps key_compose Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -872,6 +872,8 @@ class _KeyHelpToolsState extends State<KeyHelpTools> {
|
||||
|
||||
final pi = gFFI.ffiModel.pi;
|
||||
final isMac = pi.platform == kPeerPlatformMacOS;
|
||||
final isWin = pi.platform == kPeerPlatformWindows;
|
||||
final isLinux = pi.platform == kPeerPlatformLinux;
|
||||
final modifiers = <Widget>[
|
||||
wrap('Ctrl ', () {
|
||||
setState(() => inputModel.ctrl = !inputModel.ctrl);
|
||||
@@ -952,6 +954,28 @@ class _KeyHelpToolsState extends State<KeyHelpTools> {
|
||||
wrap('PgDn', () {
|
||||
inputModel.inputKey('VK_NEXT');
|
||||
}),
|
||||
// to-do: support PrtScr on Mac
|
||||
if (isWin || isLinux)
|
||||
wrap('PrtScr', () {
|
||||
inputModel.inputKey('VK_SNAPSHOT');
|
||||
}),
|
||||
if (isWin || isLinux)
|
||||
wrap('ScrollLock', () {
|
||||
inputModel.inputKey('VK_SCROLL');
|
||||
}),
|
||||
if (isWin || isLinux)
|
||||
wrap('Pause', () {
|
||||
inputModel.inputKey('VK_PAUSE');
|
||||
}),
|
||||
if (isWin || isLinux)
|
||||
// Maybe it's better to call it "Menu"
|
||||
// https://en.wikipedia.org/wiki/Menu_key
|
||||
wrap('Menu', () {
|
||||
inputModel.inputKey('Apps');
|
||||
}),
|
||||
wrap('Enter', () {
|
||||
inputModel.inputKey('VK_ENTER');
|
||||
}),
|
||||
SizedBox(width: 9999),
|
||||
wrap('', () {
|
||||
inputModel.inputKey('VK_LEFT');
|
||||
|
||||
Reference in New Issue
Block a user