[Jprogramming] Capturing an arrow key press event in wd GUI?

'Pascal Jasmin' via Programming programming at jsoftware.com
Tue Jun 21 19:44:39 UTC 2016


would also love the feature.

the opengl demo (shader) has key events but 


wd 'verbose 3'


doesn't post them to console.




mswd_handler =: 3 : 0
smoutput wd 'q'
)

doesn't get any keypresses

I'm also unsure how to do it, and would like a multicontrol form key preview functionality (text boxes excepted)

You may be able to use function keys (from shader demo)


a_f10_fkey=: 3 : 0
STOP=: -.STOP
)

----- Original Message -----
From: Ric Sherlock <tikkanz at gmail.com>
To: Programming JForum <programming at jsoftware.com>; qt at jsoftware.com
Sent: Monday, June 20, 2016 9:30 PM
Subject: [Jprogramming] Capturing an arrow key press event in wd GUI?

​
Is it possible to capture an Arrow keypress event in a WD-based Qt
application?

I have developed a J version of the 2048 game with a WD interface that I
plan to release as an addon. https://github.com/tikkanz/g2048

Currently I use menu shortcuts (Ctrl+w/s/a/d) to support the keyboard, but
it would be more ergonomic if I could use the Left, Right, Up & Down arrows
directly.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


More information about the Programming mailing list