| Ticket UUID: | 787402 | |||
| Title: | No KP_Enter on Windows | |||
| Type: | Bug | Version: | None | |
| Submitter: | cc_benny | Created on: | 2003-08-12 13:39:52 | |
| Subsystem: | 68. Win Window Operations | Assigned To: | aku | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Open | Last Modified: | 2016-08-15 14:08:42 | |
| Resolution: | None | Closed By: | nobody | |
| Closed on: | ||||
| Description: |
Original complaint on comp.lang.tcl: From: Wolf Grossi ([email protected]) Subject: KP_Enter on win98se Newsgroups: comp.lang.tcl Date: 2003-07-03 12:12:46 PST Hi all :-) can it be true that windoze does not distinguish between <Return> and <KP_Enter> ? Doing a bind . <Key> {puts %K} I get KP_Enter for enter and Return for return on Linux. On win98se, the return key and the enter key both give <Return> as result. I browsed wiki but could not find anything related. Any way to solve the puzzle? Thanks 4 reading Wolf | |||
| User Comments: |
fvogel added on 2016-08-15 14:08:42:
TIP #158 addressed the question of distinguishing, on Windows, the return and enter keys when directly binding to these keysyms: package require Tk bind . <Return> {puts "return pressed"} bind .<Extended-Return> {puts "keypad enter pressed"} However Tk on Windows does not return KP_Enter in the %K substitution for the keypad enter key. cc_benny added on 2003-08-12 20:42:56: Logged In: YES user_id=143885 My own response at the time: [...] it seem that this a generic Windows feature. There is only one code VK_RETURN which is the keycode reported by Tk. MSDN says that WM_KEYDOWN sends an "extended key" flag in its LPARAM (bit 24) that signifies keypad keys for the usual keyboards. This could probably be used to construct alternate keycodes and keysyms. [...] | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki