Opened 8 years ago
Last modified 8 years ago
#13666 new defect
Unable to change "Paste at source position" keyboard shortcut to Ctrl-V
Reported by: | alester | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core shortcuts | Version: | tested |
Keywords: | template_report | Cc: | michael2402, Beddhist, Klumbumbus |
Description
What steps will reproduce the problem?
- For "Edit: Paste", untick "Use default" and set to Ctrl-G
- For "Edit: Paste at source position", untick "Use default" and set to Ctrl-V
- Click OK to save changes. JOSM restarts to apply changes
What is the expected result?
The keyboard shortcut for "Edit: Paste at source position" changes to Ctrl-V
What happens instead?
After the restart, "Edit: Paste at source position" has reverted to the default Ctrl-Alt-V
Please provide any additional information below. Attach a screenshot if possible.
After testing half a dozen other key combinations, the "Edit: Paste at source position" keyboard shortcut setting will only revert back to the default Ctrl-Alt-V if you try to set it to Ctrl-V. If you try to set it to something else like Ctrl-Alt-Z or Ctrl-G, it successfully changes and sticks. Unfortunately, the only thing I want to change it to is Ctrl-V to revert the recent change of default behaviour.
URL:http://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2016-09-06 00:16:07 +0200 (Tue, 06 Sep 2016) Build-Date:2016-09-05 22:21:00 Revision:10966 Relative:URL: ^/trunk Identification: JOSM/1.5 (10966 en) Windows 7 64-Bit Memory Usage: 240 MB / 455 MB (123 MB allocated, but free) Java version: 1.8.0_91-b15, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Screen: \Display0 1920x1080, \Display1 1680x1050 Maximum Screen Size: 1920x1080 Plugins: + FixAddresses (32796) + ImportImagePlugin (32699) + PicLayer (32796) + apache-commons (32699) + canvec_helper (32699) + download_along (32946) + ejml (32680) + geotools (32813) + jogl (1.0.46) + jts (32699) + kendzi3d (1.0.190.1) + kendzi3d-resources (0.0.1) + log4j (32699) + measurement (32936) + opendata (32898) + pbf (32865) + poly (32699) + reltoolbox (32796) + reverter (32796) + routing (32796) + todo (30000) + turnrestrictions (32796) + utilsplugin2 (32815) Tagging presets: + https://josm.openstreetmap.de/josmfile?page=Presets/OneClick&zip=1 Map paint styles: - https://josm.openstreetmap.de/josmfile?page=Styles/Maxspeed&style&zip=1 Last errors/warnings: - W: Unable to get color from '' for color preference 'extrude.main.line' - W: Unable to get color from '' for color preference 'improve.way.accuracy.helper.line' - W: Unable to get color from '' for color preference 'make.parallel.helper.line'
Attachments (0)
Change History (6)
comment:1 by , 8 years ago
Cc: | added |
---|
comment:3 by , 8 years ago
I'm having the same problem, on Windows 10 64 bit. Here is my preferences entry:
<list key='shortcut.entry.menu:edit:pasteAtSource'> <entry value='Edit: Paste at source position'/> <entry value='86'/> <entry value='5008'/> <entry value='86'/> <entry value='128'/> <entry value='false'/> <entry value='true'/> </list> <list key='shortcut.entry.system:paste'> <entry value='Edit: Paste'/> <entry value='86'/> <entry value='5002'/> <entry value='86'/> <entry value='640'/> <entry value='false'/> <entry value='true'/> </list>
comment:4 by , 8 years ago
Cc: | added |
---|
comment:5 by , 8 years ago
This only affects Windows systems due to the registered system shortcut CTRL+V
. To reproduce under Linux:
-
src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
diff --git a/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java b/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java index 13d1844..ebd0299 100644
a b public void initSystemShortcuts() { 76 76 Shortcut.registerSystemShortcut("system:resetX", tr("reserved"), KeyEvent.VK_BACK_SPACE, KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK) 77 77 .setAutomatic(); 78 78 // CHECKSTYLE.ON: LineLength 79 Shortcut.registerSystemShortcut("system:paste", tr("reserved"), KeyEvent.VK_V, KeyEvent.CTRL_DOWN_MASK); 79 80 } 80 81 81 82 @Override
comment:6 by , 8 years ago
Cc: | added |
---|
The shortcurt for "toolbar download in current view" works now, however I still can't change the shortcut for copy. If I reset all the shortcuts then there is copy twice in my list (ctrl+C and ctrl+insert). When I change them to something else and restart then a third copy appears in the list, which has ctrl+c set and overwrites the other two (see first screenshot).
In exported shortcut preferences file there are two entries:
<list key="shortcut.entry.system:copy" xmlns="http://josm.openstreetmap.de/preferences-1.0"> <entry value="Bearbeiten: Kopieren"/> <entry value="67"/> <entry value="5002"/> <entry value="112"/> <entry value="0"/> <entry value="false"/> <entry value="true"/> </list> <list key="shortcut.entry.system:copy:cua" xmlns="http://josm.openstreetmap.de/preferences-1.0"> <entry value="Bearbeiten: Kopieren"/> <entry value="155"/> <entry value="5006"/> <entry value="112"/> <entry value="0"/> <entry value="false"/> <entry value="true"/> </list>console:
Okt 27, 2016 11:41:06 PM org.openstreetmap.josm.Main info INFORMATION: Reassigning shortcut 'system:help' from null to 640 because of conflict with F1 Okt 27, 2016 11:41:06 PM org.openstreetmap.josm.Main info INFORMATION: Tastenkürzelkonflikt: 'system:help' wurde von 'system:copy' auf 'Strg+Alt+F1' verschoben. Okt 27, 2016 11:41:07 PM org.openstreetmap.josm.Main info INFORMATION: Reassigning shortcut 'system:help' from null to 640 because of conflict with F1 Okt 27, 2016 11:41:07 PM org.openstreetmap.josm.Main info INFORMATION: Tastenkürzelkonflikt: 'system:help' wurde von 'system:copy' auf 'Strg+Alt+F2' verschoben.URL:http://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2016-10-27 00:37:50 +0200 (Thu, 27 Oct 2016) Build-Date:2016-10-27 01:34:54 Revision:11179 Relative:URL: ^/trunk Identification: JOSM/1.5 (11179 de) Windows 7 32-Bit Memory Usage: 247 MB / 870 MB (88 MB allocated, but free) Java version: 1.8.0_111-b14, Oracle Corporation, Java HotSpot(TM) Client VM Screen: \Display0 1680x1050 Maximum Screen Size: 1680x1050 VM arguments: [-Djava.security.manager, -Djava.security.policy=file:<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=C:\Program Files\josm-latest-bla.jnlp, -Djnlpx.remove=false, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.heapsize=256m,900m, -Djnlpx.splashport=56770, -Djnlpx.jvm=<java.home>\bin\javaw.exe, -Djnlpx.vmargs=LURqYXZhLnV0aWwuQXJyYXlzLnVzZUxlZ2FjeU1lcmdlU29ydD10cnVlAA==]
I could not reproduce the issue. Changing the key of paste at source position to
Ctrl + V
worked fine after a restart.Can you search your
preferences.xml
file? I don't know the exact preferences directory in windows, but it should be in a directory namedjosm
or.josm
in your applications settings.Can you post the shortcut settings? not the whole file, your OSM login is stored in it! You should find two entries like:
Tested with: