diff --git a/gramps/plugins/lib/maps/geography.py b/gramps/plugins/lib/maps/geography.py index 3e7eaa6a7..12ce2fd46 100644 --- a/gramps/plugins/lib/maps/geography.py +++ b/gramps/plugins/lib/maps/geography.py @@ -1082,4 +1082,10 @@ class GeoGraphyView(OsmGps, NavigationView): _('The maximum number of places to show'), 4, 'geography.max_places', (1000, 10000)) + configdialog.add_checkbox(grid, + _('Use keypad for shortcuts :\n' + 'Either we choose the + and - from the keypad if we select this,\n' + 'or we use the characters from the keyboard.'), + 5, 'geography.use-keypad', + extra_callback=self.update_shortcuts) return _('The map'), grid diff --git a/gramps/plugins/lib/maps/osmgps.py b/gramps/plugins/lib/maps/osmgps.py index 0f5c6706f..f5e8e0a9b 100644 --- a/gramps/plugins/lib/maps/osmgps.py +++ b/gramps/plugins/lib/maps/osmgps.py @@ -176,11 +176,9 @@ class OsmGps(): config.set('geography.use-keypad', self._config.get('geography.use-keypad')) if config.get('geography.use-keypad'): - print "use keypad", config.get('geography.use-keypad') self.osm.set_keyboard_shortcut(osmgpsmap.MapKey_t.ZOOMIN, Gdk.keyval_from_name("KP_Add")) self.osm.set_keyboard_shortcut(osmgpsmap.MapKey_t.ZOOMOUT, Gdk.keyval_from_name("KP_Subtract")) else: - print "use keyboard", config.get('geography.use-keypad') self.osm.set_keyboard_shortcut(osmgpsmap.MapKey_t.ZOOMIN, Gdk.keyval_from_name("plus")) self.osm.set_keyboard_shortcut(osmgpsmap.MapKey_t.ZOOMOUT, Gdk.keyval_from_name("minus"))