src/Tools/jEdit/src/keymap_merge.scala
changeset 73712 3eba8d4b624b
parent 73353 279e45248e9d
child 73715 bf51c23f3f99
equal deleted inserted replaced
73711:5833b556b3b5 73712:3eba8d4b624b
    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