Opened 11 years ago

Last modified 11 years ago

#10736 new defect

JOSM ignores keyboard shortcuts after opening another window — at Version 2

Reported by: oliver.papst+josm@… Owned by: oliver.papst+josm@…
Priority: normal Milestone:
Component: Core shortcuts Version:
Keywords: template_report, focus, shortcut, arch linux Cc: skyper

Description (last modified by Don-vip)

What steps will reproduce the problem?

  1. Perform an action that opens a new window in JOSM, e.g. edit or add a tag.
  2. Close the window (Enter, esc, click, …)
  3. Try to use a keyboard shortcut → It doesn’t work
  1. Focus the main JOSM window. It already has the focus again, but apparently JOSM doesn’t notice and ignores keyboard shortcuts
  2. Finally, use the keyboard shortcut you wanted to use.

What is the expected result?

JOSM should respond to keyboard shortcuts after the secondary window is closed.

What happens instead?

Nothing. One has to refocus the main window (even though it is focused) to be able to use keyboard shortcuts again.

Please provide any additional information below. Attach a screenshot if possible.

This problem didn’t occur in previous versions of JOSM. Ticket #10633 seems to be related. Sometimes keyboard shortcuts still work after closing the window, but after opening and closing another window (without refocusing), it always fails.

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2014-10-21 19:23:06
Last Changed Author: Don-vip
Revision: 7643
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Relative URL: ^/trunk
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2014-10-21 21:19:16 +0200 (Tue, 21 Oct 2014)
Last Changed Rev: 7643

Identification: JOSM/1.5 (7643 de) Linux Arch Linux
Memory Usage: 350 MB / 3641 MB (231 MB allocated, but free)
Java version: 1.7.0_71, Oracle Corporation, OpenJDK 64-Bit Server VM
VM arguments: [-Djosm.restart=true]
Dataset consistency test: No problems found

Change History (2)

comment:1 by akks, 11 years ago

I always had a bad feeling about that FocusListeners...

However I can not reproduce on my Windows machine.

comment:2 by Don-vip, 11 years ago

Description: modified (diff)
Keywords: arch linux added
Owner: changed from team to oliver.papst+josm@…
Status: newneedinfo

Can't reproduce neither on my Ubuntu machine.

Oliver, can you please tell us what window manager you're using?

Note: See TracTickets for help on using tickets.