commonMain.jetbrains.datalore.base.event.KeyModifiers.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lets-plot-common Show documentation
Show all versions of lets-plot-common Show documentation
Lets-Plot JVM package without rendering part
/*
* Copyright (c) 2019. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.base.event
class KeyModifiers(val isCtrl: Boolean, val isAlt: Boolean, val isShift: Boolean, val isMeta: Boolean) {
private constructor() : this(false, false, false, false)
companion object {
private val EMPTY_MODIFIERS = KeyModifiers()
fun emptyModifiers(): KeyModifiers {
return EMPTY_MODIFIERS
}
fun withShift(): KeyModifiers {
return KeyModifiers(false, false, true, false)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy