We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 754fcfe + 72d5346 commit 8d64cfaCopy full SHA for 8d64cfa
src/main/java/sc/iview/Controls.kt
@@ -197,7 +197,10 @@ open class Controls(val sciview: SciView) {
197
h.addKeyBinding("ruler: keep the button pressed and drag with the mouse", "E")
198
199
val configFile = File(System.getProperty("user.home")).resolve(".sciview.keybindings.yaml")
200
- inputHandler.readFromFile(configFile)
+ if( configFile.exists() )
201
+ inputHandler.readFromFile(configFile)
202
+ else
203
+ inputHandler.useDefaultBindings(configFile.absolutePath)
204
}
205
206
/*
0 commit comments