-
Notifications
You must be signed in to change notification settings - Fork 321
Update use of input display #2033
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
Conversation
|
I really, really like how this should work, but... when I open it and hit Ctrl+L, I just see Ctrl. Other modifiers work as expected. I notice that Super (Windows key/apple key, I think...?) doesn't show up as a modifier. I guess it's unlikely we ever handle this, but just noting it. |
Hmmm, Ctrl+L (Windows) and Cmd+L (Mac) and working for me as expected - but I haven't tried Linux. Do you mean Ctrl+L specifically fails, or Ctrl fails no matter what letter it is paired with? If it's just Ctrl+L then I guess it's a tolerable (and perhaps Linux-specific?) window-focussing issue. Windows key probably just needs to be added here. |
|
I think we shouldn't use the system/super key anyway, as traditionally it is for system-level shortcuts, and we don't currently support user keymaps. The control issue is odd, and yes it is for every key along with Ctrl. The line collects normal text when alt/shift/etc are depressed, but when ctrl is down, the text gets mangled, probably by some Linux quirk, so the current key map looks like this: or for multiple keys: This then gets displayed as (what looks like?) a blank space in the input display, or for multiple keys as blank spaces with I'll try solve this as I suspect you are not as keen to understand Linux weirdness as I am |
|
Thanks, I’m not sure what JavaFX |
|
I think Super == Windows so should be alright |
|
I've just updated the snapshot of |
|
Oh thanks, I had a local snapshot of fxtras on my local maven and ran that with qupath; is there an easier way? I think I tried includeBuild before with not a lot of luck |
|
I was using |
|
I should probably have stayed away from num lock since Macs don't have a dedicated key for it, and I don't have a suitable keyboard to test it with in Windows. Made some more changes at qupath/qupath-fxtras#65
Sounds desirable, although I've no idea how to do it reliably. Feel free to make a PR or approve if you think it's currently good enough to use for the release. @finglis also please check it out. |
|
I'm not really a fan of the Home/End/Page Up/Page Down symbols, and if I run: var id = getQuPath().getInputDisplay()
id.setShowSymbols(false)then for Home/End/Page Up/Page Down I get $/#/!/" respectively, and for up/down/left/right I get &/(/%/'. |
|
Can you make a PR to change them? I don't mind using fewer symbols and more text if that's safer - and/or switching to default to not using symbols. |
Rylern
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good on Linux (Fedora) and MacOS
finglis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some issues pointed out in call:
- Windows specific - scroll arrow remains even after release (but will eventually randomly disappear)
- When pressing a combo (eg ctrl + shift + c) and then pressing another keyboard key after. It looks like the ctrl + shift was pressed in combination with it instead (eg v on its own looks like ctrl + shift + v).
- Shift + numbers will not show the punctuation key that corresponds, only that shift + number has been pressed. Possibly not ideal for cross platform demonstrating since shift +2 is not the same output on windows and mac.
Updated qupath-fxtras version from 0.3.0-SNAPSHOT to 0.3.0.

Draft PR to explore the changes introduces in qupath/qupath-fxtras#63
If accepted, then a new release of qupath-fxtras should be made (this currently uses a snapshot).
The main change is that the input display now makes key presses visible for longer, having them gentle fade out rather than disappear immediately after keys are released.
This is actually really fiddly to try to get behaving well, because a combination like
Ctrl + Shift + Ccorresponds to multiple events, and so there needs to be some kind of 'memory' to avoid retaining only the last key that was released.Changes to behavior would need to be made in qupath-fxtras.
There are also some new options for
InputDisplay, which can be controlled via scripting: