equal
deleted
inserted
replaced
28 (property.endsWith(".shortcut") || property.endsWith(".shortcut2")) && |
28 (property.endsWith(".shortcut") || property.endsWith(".shortcut2")) && |
29 !property.startsWith("options.shortcuts.") |
29 !property.startsWith("options.shortcuts.") |
30 |
30 |
31 class Shortcut(val property: String, val binding: String) |
31 class Shortcut(val property: String, val binding: String) |
32 { |
32 { |
33 override def toString: String = property + "=" + binding |
33 override def toString: String = Properties.Eq(property -> binding) |
34 |
34 |
35 def primary: Boolean = property.endsWith(".shortcut") |
35 def primary: Boolean = property.endsWith(".shortcut") |
36 |
36 |
37 val action: String = |
37 val action: String = |
38 Library.try_unsuffix(".shortcut", property) orElse |
38 Library.try_unsuffix(".shortcut", property) orElse |