From e06e23dd4c5ce4e727701ce8580f28834eddae64 Mon Sep 17 00:00:00 2001 From: Dorota Czaplejewicz Date: Wed, 8 Jan 2020 12:06:15 +0000 Subject: [PATCH] overlay: Add terminal Enables Terminal to be selected as an overlay over the selected language. --- src/resources.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/resources.rs b/src/resources.rs index b17b0ef5..ea34d52d 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -11,6 +11,7 @@ use std::iter::FromIterator; // and what a convenience layout. "_wide" is not a layout, // neither is "number" const KEYBOARDS: &[(*const str, *const str)] = &[ + // layouts ("us", include_str!("../data/keyboards/us.yaml")), ("us_wide", include_str!("../data/keyboards/us_wide.yaml")), ("de", include_str!("../data/keyboards/de.yaml")), @@ -24,6 +25,7 @@ const KEYBOARDS: &[(*const str, *const str)] = &[ ("no", include_str!("../data/keyboards/no.yaml")), ("number", include_str!("../data/keyboards/number.yaml")), ("se", include_str!("../data/keyboards/se.yaml")), + // layout+overlay ("terminal", include_str!("../data/keyboards/terminal.yaml")), // Overlays ("emoji", include_str!("../data/keyboards/emoji.yaml")), @@ -44,7 +46,8 @@ pub fn get_keyboard(needle: &str) -> Option<&'static str> { } const OVERLAY_NAMES: &[*const str] = &[ - "emoji" + "emoji", + "terminal", ]; pub fn get_overlays() -> Vec<&'static str> {