laptop and a wrench

漏洞

MapControl stops listening to the keyboard events if you minimize the window, or click on another application and then click back on the map in JAVA.

上次发布: August 25, 2014 No Product Found
漏洞 ID 编号 NIM005083
已提交November 2, 2006
上次修改时间June 5, 2024
适用范围No Product Found
找到的版本9.1
编程语言Java
修正版本9.3
状态Duplicate

附加信息

NIM008211

解决办法

1) include a call to map.requestFocusInWindow() in the "onMouseUp" event of the mapcontrolAND2) add key listeners to the map control to listen to the AWT key events: map.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent theEvent) { System.out.println("keyPressed"); } public void keyReleased(java.awt.event.KeyEvent parm1) { System.out.println("keyReleased"); } });To test the workaround in the project 528704, enable the two pices of code enclosed between the comments "// ENABLE THESE LINES TO SOLVE ISSUE " in the file MapEventTest.java. The workaround works fine in 9.1 and 9.2

重现步骤

漏洞 ID: NIM005083

软件:

  • No Product Found

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项