<?xml version="1.0" ?>
<!--
Copyright © 2013 Francesco Fumanti <francesco.fumanti@gmx.net>
Copyright © 2013-2014, 2016 marmuta <marmvta@gmail.com>This file is part of Onboard.
Onboard is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
Onboard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<keyboard format="3.2" id="modified-small" section="system" summary="Space efficient desktop keyboard">
  <include file="key_defs.xml"/>
  <box border="0.5" orientation="vertical" spacing="1.5">
    <!--- word suggestions -->
    <panel filename="modified-small-Alpha.svg">
      <include file="word_suggestions.xml"/></panel>
    <key_template button="true" id="layer0" show_active="false"/>
    <key_template button="true" id="layer1" label="12?"/>
    <key_template button="true" id="layer2" label="Sym"/>
    <key_template button="true" id="layer3" image="" label="Fn"/>
    <key_template button="true" id="layer4" image="snippets.svg" label=""/>
    <key_template button="true" id="layer5" label="☺"/>
    <box>
      <panel>
        <!-- layer0 -->
        <!-- Cyrillic keymaps -->
        <panel id="alpha-keys" filename="modified-small-Alpha.svg" layer="alpha" layout="ru,ua,by,bg,tj,ge(os),az(cyrillic),mn,mk">
          <!-- row 4 -->
          <key group="bottomrow" id="ESC" label_margin=", 2"/>
          <key group="alphanumeric" id="AD01" svg_id="AD01-cyr"/>
          <key group="alphanumeric" id="AD02" svg_id="AD02-cyr"/>
          <key group="alphanumeric" id="AD03" svg_id="AD03-cyr"/>
          <key group="alphanumeric" id="AD04" svg_id="AD04-cyr"/>
          <key group="alphanumeric" id="AD05" svg_id="AD05-cyr"/>
          <key group="alphanumeric" id="AD06" svg_id="AD06-cyr"/>
          <key group="alphanumeric" id="AD07" svg_id="AD07-cyr"/>
          <key group="alphanumeric" id="AD08" svg_id="AD08-cyr"/>
          <key group="alphanumeric" id="AD09" svg_id="AD09-cyr"/>
          <key group="alphanumeric" id="AD10" svg_id="AD10-cyr"/>
          <key group="alphanumeric" id="AD11" svg_id="AD11-cyr"/>
          <key group="bottomrow" id="BKSP"/>
          <!-- row 3 -->
          <key group="bottomrow" id="TAB"/>
          <key group="alphanumeric" id="AC01" svg_id="AC01-cyr"/>
          <key group="alphanumeric" id="AC02" svg_id="AC02-cyr"/>
          <key group="alphanumeric" id="AC03" svg_id="AC03-cyr"/>
          <key group="alphanumeric" id="AC04" svg_id="AC04-cyr"/>
          <key group="alphanumeric" id="AC05" svg_id="AC05-cyr"/>
          <key group="alphanumeric" id="AC06" svg_id="AC06-cyr"/>
          <key group="alphanumeric" id="AC07" svg_id="AC07-cyr"/>
          <key group="alphanumeric" id="AC08" svg_id="AC08-cyr"/>
          <key group="alphanumeric" id="AC09" svg_id="AC09-cyr"/>
          <key group="alphanumeric" id="AC10" svg_id="AC10-cyr"/>
          <key group="alphanumeric" id="AC11" svg_id="AC11-cyr" keycode="35" layout="ru,tj,az(cyrillic)"/>
          <key group="alphanumeric" id="AC11" svg_id="AC11-cyr" keycode="51" layout="ua"/>
          <key group="alphanumeric" id="AC11" svg_id="AC11-cyr"/>
          <key group="bottomrow" id="DELE"/>
          <!-- row 2 -->
          <key group="shifts" id="LFSH"/>
          <key group="alphanumeric" id="AB01" svg_id="AB01-cyr"/>
          <key group="alphanumeric" id="AB02" svg_id="AB02-cyr"/>
          <key group="alphanumeric" id="AB03" svg_id="AB03-cyr"/>
          <key group="alphanumeric" id="AB04" svg_id="AB04-cyr"/>
          <key group="alphanumeric" id="AB05" svg_id="AB05-cyr"/>
          <key group="alphanumeric" id="AB06" svg_id="AB06-cyr"/>
          <key group="alphanumeric" id="AB07" svg_id="AB07-cyr"/>
          <key group="alphanumeric" id="AB08" svg_id="AB08-cyr"/>
          <key group="alphanumeric" id="AB09" svg_id="AB09-cyr"/>
          <key group="alphanumeric" id="AB09" svg_id="AB09-cyr"/>
          <key group="alphanumeric" id="AB10" svg_id="AB10-cyr" keycode="48" layout="ru,ua,tj,az(cyrillic)"/>
          <key group="alphanumeric" id="AB10" svg_id="AB10-cyr" keycode="49" layout="ge(os)"/>
          <!-- not ideal, but sacrifice ESC instead? -->
          <key group="alphanumeric" id="AB10" svg_id="AB10-cyr" keycode="51" layout="mk"/>
          <key group="alphanumeric" id="AB10" svg_id="AB10-cyr"/>
          <key group="misc" id="RTRN" popup_id="RTRN_popup"/>
          <key group="shifts" id="RTSH"/>
        </panel>
        <!-- Latin and other keymaps -->
        <panel id="alpha-keys" filename="modified-small-Alpha.svg" layer="alpha">
          <!-- row 4 -->
          <key group="bottomrow" id="ESC" label_margin=", 2"/>
          <key group="alphanumeric" id="AD01"/>
          <key group="alphanumeric" id="AD02"/>
          <key group="alphanumeric" id="AD03"/>
          <key group="alphanumeric" id="AD04"/>
          <key group="alphanumeric" id="AD05"/>
          <key group="alphanumeric" id="AD06"/>
          <key group="alphanumeric" id="AD07"/>
          <key group="alphanumeric" id="AD08"/>
          <key group="alphanumeric" id="AD09"/>
          <key group="alphanumeric" id="AD10"/>
          <key group="bottomrow" id="BKSP"/>
          <!-- row 3 -->
          <key group="bottomrow" id="TAB"/>
          <key group="alphanumeric" id="AC01"/>
          <key group="alphanumeric" id="AC02"/>
          <key group="alphanumeric" id="AC03"/>
          <key group="alphanumeric" id="AC04"/>
          <key group="alphanumeric" id="AC05"/>
          <key group="alphanumeric" id="AC06"/>
          <key group="alphanumeric" id="AC07"/>
          <key group="alphanumeric" id="AC08"/>
          <key group="alphanumeric" id="AC09"/>
          <key group="alphanumeric" id="AC10" keycode="47" layout="be,fr,cm(azerty)"/>
          <key group="alphanumeric" id="AC10"/>
          <key group="alphanumeric" id="HASH" label="#" char="#" />
          <!-- row 2 -->
          <key group="shifts" id="LFSH"/>
          <key group="alphanumeric" id="AB01"/>
          <key group="alphanumeric" id="AB02"/>
          <key group="alphanumeric" id="AB03"/>
          <key group="alphanumeric" id="AB04"/>
          <key group="alphanumeric" id="AB05"/>
          <key group="alphanumeric" id="AB06"/>
          <key group="alphanumeric" id="AB07" label="'" char="'" layout="be,fr,cm(azerty)"/>
          <key group="alphanumeric" id="AB07"/>
          <key group="alphanumeric" id="AB08" label="," char=","/>
          <key group="alphanumeric" id="AB09" label="." char="."/>
          <key group="misc" id="RTRN" popup_id="RTRN_popup"/>
          <key group="shifts" id="RTSH"/>
        </panel>
        <!-- layer1 -->
        <panel filename="modified-small-Numbers.svg" layer="numbers">
          <!-- row 4, numbers layer -->
          <key group="bottomrow" id="ESC"/>
          <key group="alphanumeric" id="BD01" keysym="0x31" label="1"/>
          <key group="alphanumeric" id="BD02" keysym="0x32" label="2"/>
          <key group="alphanumeric" id="BD03" keysym="0x33" label="3"/>
          <key group="alphanumeric" id="BD04" keysym="0x34" label="4"/>
          <key group="alphanumeric" id="BD05" keysym="0x35" label="5"/>
          <key group="alphanumeric" id="BD06" keysym="0x36" label="6"/>
          <key group="alphanumeric" id="BD07" keysym="0x37" label="7"/>
          <key group="alphanumeric" id="BD08" keysym="0x38" label="8"/>
          <key group="alphanumeric" id="BD09" keysym="0x39" label="9"/>
          <key group="alphanumeric" id="BD10" keysym="0x30" label="0"/>
          <key group="bottomrow" id="BKSP"/>
          <!-- row 3, numbers layer -->
          <key group="bottomrow" id="TAB"/>
          <key char="#" group="alphanumeric" id="BC01" label="#"/>
          <key char="%" group="alphanumeric" id="BC02" label="%"/>
          <key char="+" group="alphanumeric" id="BC03" label="+"/>
          <key char="-" group="alphanumeric" id="BC04" label="-"/>
          <key char="*" group="alphanumeric" id="BC05" label="*"/>
          <key char="/" group="alphanumeric" id="BC06" label="/"/>
          <key char="\" group="alphanumeric" id="BC07" label="\"/>
          <key char="(" group="alphanumeric" id="BC08" label="("/>
          <key char=")" group="alphanumeric" id="BC09" label=")"/>
          <key char="'" group="alphanumeric" id="BC10" label="'"/>
          <key group="bottomrow" id="DELE"/>
          <!-- row 2, numbers layer -->
          <key group="bottomrow" id="layer5"/>
          <key char="@" group="alphanumeric" id="BB01" label="@"/>
          <key char="=" group="alphanumeric" id="BB02" label="="/>
          <key char="&quot;" group="alphanumeric" id="BB03" label="&quot;"/>
          <key char="?" group="alphanumeric" id="BB04" label="?"/>
          <key char="!" group="alphanumeric" id="BB05" label="!"/>
          <key char=";" group="alphanumeric" id="BB06" label=";"/>
          <key char=":" group="alphanumeric" id="BB07" label=":"/>
          <key char="," group="alphanumeric" id="BB08" label=","/>
          <key char="." group="alphanumeric" id="BB09" label="."/>
          <key group="misc" id="RTRN" popup_id="RTRN_popup"/>
        </panel>
        <!-- layer2 -->
        <panel filename="modified-small-Syms.svg" layer="syms">
          <!-- row 4 -->
          <key group="bottomrow" id="ESC"/>
          <key char="`" group="alphanumeric" id="CD01" label="`"/>
          <key char="~" group="alphanumeric" id="CD02" label="~"/>
          <key char="_" group="alphanumeric" id="CD03" label="_"/>
          <key char="&lt;" group="alphanumeric" id="CD04" label="&lt;"/>
          <key char="|" group="alphanumeric" id="CD05" label="|"/>
          <key char="&gt;" group="alphanumeric" id="CD06" label="&gt;"/>
          <key char="{" group="alphanumeric" id="CD07" label="{"/>
          <key char="}" group="alphanumeric" id="CD08" label="}"/>
          <key char="[" group="alphanumeric" id="CD09" label="["/>
          <key char="]" group="alphanumeric" id="CD10" label="]"/>
          <key group="bottomrow" id="BKSP"/>
          <!-- row 3 -->
          <key group="bottomrow" id="TAB"/>
          <key char="$" group="alphanumeric" id="CC01" label="$"/>
          <key group="alphanumeric" id="CC02" label="€" keysym="8364"/>
          <key group="alphanumeric" id="CC03" label="¥" char="¥"/>
          <key group="alphanumeric" id="CC04" label="₽" char="₽"/>
          <key group="alphanumeric" id="CC05" label="₮" char="₮" layout="mn"/>
          <!-- Mongolian tögrög -->
          <key group="alphanumeric" id="CC05" label="£" char="£"/>
          <key group="alphanumeric" id="CC06" label="&amp;" char="&amp;"/>
          <key char="§" group="alphanumeric" id="CC07" label="§"/>
          <key char="^" group="alphanumeric" id="CC08" label="^"/>
          <key char="°" group="alphanumeric" id="CC09" label="°"/>
          <key char="…" group="alphanumeric" id="CC10" label="…"/>
          <key group="bottomrow" id="DELE"/>
          <!-- row 2 -->
          <key group="bottomrow" id="layer5"/>
          <key char="„" group="alphanumeric" id="CB01" label="„"/>
          <key char="”" group="alphanumeric" id="CB02" label="”"/>
          <key char="«" group="alphanumeric" id="CB03" label="«"/>
          <key char="»" group="alphanumeric" id="CB04" label="»"/>
          <key char="¿" group="alphanumeric" id="CB05" label="¿"/>
          <key char="¡" group="alphanumeric" id="CB06" label="¡"/>
          <key char="™" group="alphanumeric" id="CB07" label="™"/>
          <key char="®" group="alphanumeric" id="CB08" label="®"/>
          <key char="©" group="alphanumeric" id="CB09" label="©"/>
          <key group="misc" id="RTRN" popup_id="RTRN_popup"/>
        </panel>
        <!-- layer3 -->
        <panel filename="modified-small-Fn.svg" layer="functionkeys">
          <key group="bottomrow" id="ESC"/>
          <key group="fkeys" id="F1.rows_of_six"/>
          <key group="fkeys" id="F2.rows_of_six"/>
          <key group="fkeys" id="F3.rows_of_six"/>
          <key group="fkeys" id="F4.rows_of_six"/>
          <key group="fkeys" id="F5.rows_of_six"/>
          <key group="fkeys" id="F6.rows_of_six"/>
          <key group="fkeys" id="F7.rows_of_six"/>
          <key group="fkeys" id="F8.rows_of_six"/>
          <key group="fkeys" id="F9.rows_of_six"/>
          <key group="fkeys" id="F10.rows_of_six"/>
          <key group="fkeys" id="F11.rows_of_six"/>
          <key group="fkeys" id="F12.rows_of_six" label_margin="2"/>
          <key group="editing" id="Prnt" scan_priority="1"/>
          <key group="editing" id="Pause" scan_priority="1"/>
          <key group="editing" id="Scroll" scan_priority="1"/>
          <key group="editing" id="INS"/>
          <key group="editing" id="HOME"/>
          <key group="editing" id="PGUP"/>
          <key group="editing" id="DELE" image="" label="Del"/>
          <key group="editing" id="END"/>
          <key group="editing" id="PGDN"/>
          <key group="bottomrow" id="TAB"/>
          <key group="bottomrow" id="layer5"/>
        </panel>
        <!-- layer4 -->
        <panel filename="modified-small-Snippets.svg" layer="snippets">
          <key group="snippets" id="m0"/>
          <key group="snippets" id="m1"/>
          <key group="snippets" id="m2"/>
          <key group="snippets" id="m3"/>
          <key group="snippets" id="m4"/>
          <key group="snippets" id="m5"/>
          <key group="snippets" id="m6"/>
          <key group="snippets" id="m7"/>
          <key group="snippets" id="m8"/>
          <key group="snippets" id="m9"/>
          <key group="snippets" id="m10"/>
          <key group="snippets" id="m11"/>
          <key expand="false" group="bottomrow" id="hide"/>
          <key expand="false" group="bottomrow" id="move"/>
          <key group="click_control" id="showclick"/>
          <key group="bottomrow" id="layer5" label="☺"/>
          <key group="bottomrow" id="layer0"/>
        </panel>
        <!-- layer5 -->
        <panel filename="modified-small-Emoji.svg" layer="emoji">
          <!-- row 4 -->
          <key group="bottomrow" id="ESC"/>
          <key char="☺" group="symbol" id="DD01" label="☺" tooltip="Smiling face"/>
          <!-- U+263A -->
          <key char="😊" group="symbol" id="DD02" label="😊" tooltip="Smiling face with smiling eyes"/>
          <!-- U+1F60A -->
          <key char="😄" group="symbol" id="DD03" label="😄" tooltip="Smiling face with open mouth and smiling eyes"/>
          <!-- U+1F604 -->
          <key char="😉" group="symbol" id="DD04" label="😉" tooltip="Winking face"/>
          <!-- U+1F609 -->
          <key char="😜" group="symbol" id="DD05" label="😜" tooltip="Face with stuck-out tongue and winking eye"/>
          <!-- U+1F61C -->
          <key char="😚" group="symbol" id="DD06" label="😚" tooltip="Kissing face with closed eyes"/>
          <!-- U+1F61A -->
          <key char="😎" group="symbol" id="DD07" label="😎" tooltip="Smiling face with sunglasses"/>
          <!-- U+1F60E -->
          <key char="😇" group="symbol" id="DD08" label="😇" tooltip="Smiling face with halo"/>
          <!-- U+1F607 -->
          <key char="♀" group="symbol" id="DD09" label="♀" tooltip="Female sign"/>
          <!-- U+2640 -->
          <key char="☼" group="symbol" id="DD10" label="☼" tooltip="White sun with rays"/>
          <!-- U+263C -->
          <key group="bottomrow" id="BKSP"/>
          <!-- row 3 -->
          <key group="bottomrow" id="TAB"/>
          <key char="☹" group="symbol" id="DC01" label="☹" tooltip="Frowning face"/>
          <!-- U+2639 -->
          <key char="😠" group="symbol" id="DC02" label="😠" tooltip="Angry face"/>
          <!-- U+1F620 -->
          <key char="😢" group="symbol" id="DC03" label="😢" tooltip="Crying face"/>
          <!-- U+1F622 -->
          <key char="😲" group="symbol" id="DC04" label="😲" tooltip="Astonished face"/>
          <!-- U+1F632 -->
          <key char="😖" group="symbol" id="DC05" label="😖" tooltip="Confounded face"/>
          <!-- U+1F616 -->
          <key char="😫" group="symbol" id="DC06" label="😫" tooltip="Tired face"/>
          <!-- U+1F62B -->
          <key char="😋" group="symbol" id="DC07" label="😋" tooltip="Face savouring delicious food"/>
          <!-- U+1F60B -->
          <key char="😈" group="symbol" id="DC08" label="😈" tooltip="Smiling face with horns"/>
          <!-- U+1F608 -->
          <key char="♂" group="symbol" id="DC09" label="♂" tooltip="Male sign"/>
          <!-- U+2642 -->
          <key char="☾" group="symbol" id="DC10" label="☾" tooltip="Last quarter moon"/>
          <!-- U+263E -->
          <key group="bottomrow" id="DELE"/>
          <!-- row 2 -->
          <key group="bottomrow" id="layer5"/>
          <key char="♡" group="symbol" id="DB01" label="♡" tooltip="White heart suit"/>
          <!-- U+2661 -->
          <key char="♫" group="symbol" id="DB02" label="♫" tooltip="Beamed eighth note"/>
          <!-- U+266B -->
          <key char="☏" group="symbol" id="DB03" label="☏" tooltip="White telephone"/>
          <!-- U+260F -->
          <key char="✉" group="symbol" id="DB04" label="✉" tooltip="Envelope"/>
          <!-- U+2709 -->
          <key char="☂" group="symbol" id="DB05" label="☂" tooltip="Umbrella"/>
          <!-- U+2602 -->
          <key char="☮" group="symbol" id="DB06" label="☮" tooltip="Peace symbol"/>
          <!-- U+262E -->
          <key char="☆" group="symbol" id="DB07" label="☆" tooltip="White star"/>
          <!-- U+2606 -->
          <key char="☯" group="symbol" id="DB08" label="☯" tooltip="Yin yang"/>
          <!-- U+262F -->
          <key char="☢" group="symbol" id="DB09" label="☢" tooltip="Radioactive sign"/>
          <!-- U+2622 -->
          <key group="misc" id="RTRN" popup_id="RTRN_popup"/>
        </panel>
        <panel>
          <panel>
            <panel filename="modified-small-Alpha.svg" layer="alpha">
              <!-- layer1 -->
              <key group="bottomrow" id="LCTL"/>
              <key group="bottomrow" id="LWIN"/>
              <key group="bottomrow" id="LALT"/>
            </panel>
            <panel filename="modified-small-Numbers.svg" layer="numbers">
              <key group="bottomrow" id="layer4"/>
              <key group="bottomrow" id="layer3"/>
              <key group="bottomrow" id="layer2"/>
            </panel>
            <panel filename="modified-small-Syms.svg" layer="syms">
              <key group="bottomrow" id="layer4"/>
              <key group="bottomrow" id="layer3"/>
              <key group="bottomrow" id="layer2"/>
            </panel>
            <panel filename="modified-small-Fn.svg" layer="functionkeys">
              <key group="bottomrow" id="layer4"/>
              <key group="bottomrow" id="layer3"/>
              <key group="bottomrow" id="layer2"/>
            </panel>
            <panel filename="modified-small-Snippets.svg" layer="snippets">
              <key group="bottomrow" id="layer4"/>
              <key group="bottomrow" id="layer3"/>
              <key group="bottomrow" id="layer2"/>
            </panel>
            <panel filename="modified-small-Emoji.svg" layer="emoji">
              <key group="bottomrow" id="layer4"/>
              <key group="bottomrow" id="layer3"/>
              <key group="bottomrow" id="layer2"/>
            </panel>
          </panel>
          <panel filename="modified-small-Alpha.svg">
            <key group="bottomrow" id="layer1"/>
          </panel>
          <panel>
            <panel filename="modified-small-Alpha.svg" layer="alpha">
              <key group="bottomrow" id="SPCE"/>
              <key group="alphanumeric" id="LEFT"/>
              <key group="alphanumeric" id="RGHT"/>
              <key group="directions_alpha" id="UP"/>
              <key group="directions_alpha" id="DOWN"/>
            </panel>
            <panel filename="modified-small-Numbers.svg" layer="numbers">
              <key group="bottomrow" id="SPCE"/>
              <key group="alphanumeric" id="LEFT"/>
              <key group="alphanumeric" id="RGHT"/>
              <key group="alphanumeric" id="UP"/>
              <key group="alphanumeric" id="DOWN"/>
            </panel>
            <panel filename="modified-small-Syms.svg" layer="syms">
              <key group="bottomrow" id="SPCE"/>
              <key group="alphanumeric" id="LEFT"/>
              <key group="alphanumeric" id="RGHT"/>
              <key group="alphanumeric" id="UP"/>
              <key group="alphanumeric" id="DOWN"/>
            </panel>
            <panel filename="modified-small-Emoji.svg" layer="emoji">
              <key group="bottomrow" id="SPCE"/>
              <key group="alphanumeric" id="LEFT"/>
              <key group="alphanumeric" id="RGHT"/>
              <key group="alphanumeric" id="UP"/>
              <key group="alphanumeric" id="DOWN"/>
            </panel>
            <panel filename="modified-small-Fn.svg" layer="functionkeys">
              <key group="bottomrow" id="SPCE"/>
              <key group="alphanumeric" id="LEFT"/>
              <key group="alphanumeric" id="RGHT"/>
              <key group="alphanumeric" id="UP"/>
              <key group="alphanumeric" id="DOWN"/>
            </panel>
            <panel filename="modified-small-Snippets.svg" layer="snippets">
              <key group="bottomrow" id="quit"/>
              <key group="bottomrow" id="settings"/>
              <key group="click_control" id="hoverclick" unlatch_layer="false"/>
            </panel>
          </panel>
        </panel>
      </panel>
      <!-- Panel with the click buttons -->
      <panel filename="modified-small-Alpha.svg" id="click">
        <key group="click" id="middleclick"/>
        <key group="click" id="secondaryclick"/>
        <key group="click" id="doubleclick"/>
        <key group="click" id="dragclick"/>
      </panel>
    </box>
  </box>
  <!-- popup definition -->
  <layout filename="modified-small-Alpha.svg" id="RTRN_popup">
    <box compact="true">
      <key id="settings"/>
      <key id="move"/>
      <key id="showclick"/>
      <key group="nowordlist" id="hide" image="close.svg" svg_id="hide.popup"/>
    </box>
  </layout>
</keyboard>
