m1k1o / neko

A self hosted virtual browser that runs in docker and uses WebRTC.
https://neko.m1k1o.net/
Apache License 2.0
7.11k stars 524 forks source link

Project does not support Chinese, can only copy, cannot edit, and chat interface does not support Chinese input #364

Open lologu1 opened 8 months ago

lologu1 commented 8 months ago

When I try to use the project, I find that it does not support Chinese input. I can only copy and paste Chinese text, but I cannot edit it. Also, the chat interface does not support Chinese input. This makes it difficult for me to use the project effectively.

Steps to reproduce:

Open the project. Try to type Chinese characters in the text editor. Try to edit Chinese text that has been copied and pasted into the text editor. Try to type Chinese characters in the chat interface. Expected behavior:

I should be able to type and edit Chinese characters in the text editor and chat interface.

Actual behavior:

I am unable to type or edit Chinese characters in the text editor or chat interface.

Additional information:

I am using the latest version of the project. I have tried using different browsers and operating systems, but the problem persists. I have searched the project's documentation and online forums, but I have not found any information about how to enable Chinese input. I would appreciate it if you could help me resolve this issue.

Possible solutions:

Add support for Chinese input in the text editor and chat interface. Provide a way to switch between different languages in the project. Provide a workaround that allows users to input Chinese characters, even if it is not natively supported.

m1k1o commented 8 months ago

There have been multiple attempts at adding Chinese input claiming that it works after their change. But I don't recall them mentioning chat, only the virtual browser.

Related issues: https://github.com/m1k1o/neko/issues/305 https://github.com/m1k1o/neko/issues/252 https://github.com/m1k1o/neko/issues/190 https://github.com/m1k1o/neko/issues/179

Related PR: https://github.com/m1k1o/neko/pull/176

lologu1 commented 7 months ago

It was my mistake, the chat interface can accept Chinese input. But the virtual browser cannot accept Chinese input.

lologu1 commented 7 months ago

I found a Chrome extension: https://chromewebstore.google.com/detail/mclkkofklkfljcocdinagocijmpgbhab that enables users to type in any language (from a large selection of languages) in their browser. However, it is only available as a Chrome extension (with a .crx extension and as such, cannot be used with Firefox (Firefox extensions have a .xpi extension). Could you please integrate this extension into Neko so that users can type in languages other than English on your keyboard?

Thanks,

ehfd commented 6 months ago

There is a way to send Unicode keysyms literally, being keyboard mapping independent, instead of sending virtual keycodes. Would be appropriate for many languages not using Latin.

m1k1o commented 6 months ago

The question is how to get proper codes from browser. We use guacamole keyboard, so it looks like they don't handle it well or just differently.

ehfd commented 6 months ago

image

Keyboard

On Windows, send a CTRL+ALT+DEL to the remote computer. For all OS, change the keyboard mode here:

Virtual Key Codes: Send a virtual key code to the remote machine. This mode is keyboard mapping dependent

Unicode: Send unicode key presses. This mode is keyboard mapping independent. This mode does not handle long keypresses for app shortcuts.

I think there are two different ways to send keycodes, the latter applicable to this scenario.