We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ecb610 commit ad29d00Copy full SHA for ad29d00
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