Skip to content

Add check for if opt.$menu is null when handling ESC key callback.#462

Merged
bbrala merged 1 commit intomasterfrom
unknown repository
Oct 11, 2016
Merged

Add check for if opt.$menu is null when handling ESC key callback.#462
bbrala merged 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented Sep 30, 2016

Add check for if opt.$menu is null when handling ESC key callback.

This bug can be reproduced in the following way:

  1. Go to Freeciv-web on https://play.freeciv.org and start a game.
  2. Right-clicking on a unit, then the context menu is shown.
  3. Press the ESC key.
  4. Then a Javascript error occurs in the JavaScript console.

@ghost
Copy link
Author

ghost commented Sep 30, 2016

I have applied this fix to Freeciv-web, so it can no longer be reproduced there.

@bbrala bbrala merged commit c14d150 into swisnl:master Oct 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants