Debian Codegraph @

plugins/bn/qml6/keys/SymbolShiftKey.qml

raw
1 /*
2 * Copyright 2013 Canonical Ltd.
3 * Copyright 2021 Abdullah AL Shohag
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation; version 3.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 import QtQuick
19 import keys
20 import "key_constants.js" as UI
21
22 ActionKey {
23 label: "?১২৩";
24 shifted: "?১২৩";
25 action: "symbols";
26
27 overridePressArea: true;
28
29 onPressed: {
30 if (maliit_input_method.useAudioFeedback)
31 audioFeedback.play();
32
33 if (maliit_input_method.useHapticFeedback)
34 pressEffect.start();
35
36 if (panel.state == "CHARACTERS")
37 panel.state = "SYMBOLS";
38 else
39 panel.state = "CHARACTERS";
40 }
41 }