Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes key handling in NetDriver (for WSL anyway) #173

Conversation

tig
Copy link

@tig tig commented Jan 4, 2024

This is all NetDriver under WSL:

  • A...Z and a...z work
  • D0..D9 shifted/unshifted work
  • "." / ","
  • "?"/"/"
  • Cursor Keys
  • Accents (``` + a = `à`) (shifted and not)
  • "Tab"
  • "Shift+Tab"
  • F keys

AltGr (US Intl keyboard):

  • "AltGr+a" -> [ConsoleKeyInfo(Key: Null (None), KeyChar: á (225))]
  • "AltGr+b" -> WORKS! (was [ConsoleKeyInfo(Key: 223 (Oem8) | Alt, KeyChar: ß (223))] once)
  • "AltGr+d" -> [ConsoleKeyInfo(Key: Null (None), KeyChar: ð (240))]
  • ... all rest including shifted work

Alt:

  • "Alt-alpha" (unshifted and shifted) all work
  • "Alt-numbers" (unshifted) all work
  • "Alt+Shift+numbers" (unshifted) [ConsoleKeyInfo(Key: Null (None), KeyChar: ! (33))]
  • "Alt-." -> (OemPeriod) | Alt, KeyChar: . (46))]
  • "Alt-Fn"
  • "Alt-Shift-Fn"

Ctrl:

  • "Ctrl+1" (sometimes works)
  • "Ctrl+2"
  • "Ctrl+3" -> "Esc" ('[ConsoleKeyInfo(Key: Esc (Escape), KeyChar: ␛ (27))]')
  • "Ctrl+4"
  • "Ctrl+5"
  • "Ctrl+6"
  • "Ctrl+7"
  • "Ctrl+8" -> "Backspace" ('[ConsoleKeyInfo(Key: Backspace (Backspace), KeyChar: ⑿ (127))]')
  • "Ctrl+9" gives "9" ([ConsoleKeyInfo(Key: D9 (D9), KeyChar: 9 (57))])
  • "Ctrl+0" gives "Ctrl+P" (ConsoleKeyInfo(Key: P (P) | Control, KeyChar: ␐ (16))])
  • "Ctrl+Shift+`" -> "Ctrl+2"
  • "Ctrl-Tab" -> [ConsoleKeyInfo(Key: Tab (Tab), KeyChar: ␉ (9))]
  • "Ctrl+Fn"
  • "Ctrl+Shfit+Fn"
  • "Ctrl+=" (OemPlus) -> [ConsoleKeyInfo(Key: D5 (D5) | Control, KeyChar: ␀ (0))]
    ...

MaciekWin3 and others added 6 commits January 3, 2024 17:07
* Search selected item on filtered set

* Fix unit test - don't return first item when combobox is not focused or showed

* Improve method readability

* Clean selection from previous search

* Update unit test - after changing search text unselect previously selected item
…t `Command.Accept` (gui-cs#3118)

* Command.Accept->Command.ShowContextMenu + Unit Test

* fixed unit test
…Width, and/or Height are null or Absolute() (gui-cs#2467)

* Merged v2_develop; updated API docs

* Code cleanup

* Fixed code that was using Dim/Pos before IsInit

* Fixed ComboBox using Bounds before IsInitalized and grabbing focus when it shouldn't

* Fixed ComboBox tests. Fixed FileDialog

* Fixed all !IsInitalized warnings

* Fixed AllviewsTester

* Fixed CharMap scenario

* Fixed ColorPicker (hack)

* Fixed CoputedLayout and Csv Editor

* Imrpoved warning

* Fixed more warnings

* Fixed GetTextFormatterSizeNeededForTextAndHotKey

* Fixed AllViewsTester

* AllViewsTester code cleanup

* AllViewsTester code cleanup

* AllViewsTester fixed for realz

* Decided Fill was better than Percent for default
@tig
Copy link
Author

tig commented Jan 4, 2024

@BDisp I have this working pretty well under WSL now. good enuf for now (and better than v2_develop and even develop).

Please merge this into your PR and then I'll merge your PR in v2_develop. We can then work on the VK_PACKET stuff at our leisure. Ok?

@BDisp BDisp merged commit 223e8c6 into BDisp:v2_vkeypacketsimulator-fix_3054 Jan 4, 2024
@tig tig deleted the bDisp-v2_vkeypacketsimulator-fix_3054 branch April 3, 2024 01:47
BDisp pushed a commit that referenced this pull request Dec 7, 2024
Code review comments and cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants