diff --git a/src/main/java/sc/iview/Controls.kt b/src/main/java/sc/iview/Controls.kt index 9035d20b..f5ed5ac2 100644 --- a/src/main/java/sc/iview/Controls.kt +++ b/src/main/java/sc/iview/Controls.kt @@ -197,7 +197,10 @@ open class Controls(val sciview: SciView) { h.addKeyBinding("ruler: keep the button pressed and drag with the mouse", "E") val configFile = File(System.getProperty("user.home")).resolve(".sciview.keybindings.yaml") - inputHandler.readFromFile(configFile) + if( configFile.exists() ) + inputHandler.readFromFile(configFile) + else + inputHandler.useDefaultBindings(configFile.absolutePath) } /*