Opened 9 years ago

Last modified 9 years ago

#10736 new defect

JOSM ignores keyboard shortcuts after opening another window

Reported by: oliver.papst+josm@… Owned by: team
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:
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
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

Attachments (0)

Change History (6)

comment:1 by akks, 9 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, 9 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?

comment:3 by anonymous, 9 years ago

I am using Xorg (1.16.2) with Gnome 3.14, so my window manager is Mutter (both version 3.14.2).

comment:4 by Don-vip, 9 years ago

Owner: changed from oliver.papst+josm@… to team
Status: needinfonew

comment:5 by Don-vip, 9 years ago

Cc: skyper added

@skyper: do you reproduce it?

comment:6 by gormur, 9 years ago

I have the same issue.
This started happening after upgrading from Fedora 17(32bit) to 21(64bit) even with the same josm version. With no plugins loaded. No errors on the console.

Also affects menu selections (f.ex Alt-f to open File menu) and not just josm specific stuff.

Identification: JOSM/1.5 (8109 en) Linux Fedora release 21 (Twenty One)
Memory Usage: 473 MB / 668 MB (158 MB allocated, but free)
Java version: 1.8.0_25, Oracle Corporation, OpenJDK 64-Bit Server VM
VM arguments: [-agentpath:/usr/lib/abrt-java-connector/]

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to oliver.papst+josm@….
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.