-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
- Loading branch information
Showing
4 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--sort=no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Skk input.vala /^namespace Skk {$/;" n | ||
ModifierType input.vala /^ public enum ModifierType {$/;" e namespace:Skk | ||
NONE input.vala /^ NONE = 0,$/;" v enum:Skk.ModifierType | ||
SHIFT_MASK input.vala /^ SHIFT_MASK = 1 << 0,$/;" v enum:Skk.ModifierType | ||
LOCK_MASK input.vala /^ LOCK_MASK = 1 << 1,$/;" v enum:Skk.ModifierType | ||
CONTROL_MASK input.vala /^ CONTROL_MASK = 1 << 2,$/;" v enum:Skk.ModifierType | ||
MOD1_MASK input.vala /^ MOD1_MASK = 1 << 3,$/;" v enum:Skk.ModifierType | ||
MOD2_MASK input.vala /^ MOD2_MASK = 1 << 4,$/;" v enum:Skk.ModifierType | ||
MOD3_MASK input.vala /^ MOD3_MASK = 1 << 5,$/;" v enum:Skk.ModifierType | ||
MOD4_MASK input.vala /^ MOD4_MASK = 1 << 6,$/;" v enum:Skk.ModifierType | ||
MOD5_MASK input.vala /^ MOD5_MASK = 1 << 7,$/;" v enum:Skk.ModifierType | ||
LSHIFT_MASK input.vala /^ LSHIFT_MASK = 1 << 22,$/;" v enum:Skk.ModifierType | ||
RSHIFT_MASK input.vala /^ RSHIFT_MASK = 1 << 23,$/;" v enum:Skk.ModifierType | ||
USLEEP_MASK input.vala /^ USLEEP_MASK = 1 << 24,$/;" v enum:Skk.ModifierType | ||
SUPER_MASK input.vala /^ SUPER_MASK = 1 << 26,$/;" v enum:Skk.ModifierType | ||
HYPER_MASK input.vala /^ HYPER_MASK = 1 << 27,$/;" v enum:Skk.ModifierType | ||
META_MASK input.vala /^ META_MASK = 1 << 28,$/;" v enum:Skk.ModifierType | ||
RELEASE_MASK input.vala /^ RELEASE_MASK = 1 << 30$/;" v enum:Skk.ModifierType | ||
KeyEvent input.vala /^ public class KeyEvent : Object {$/;" c namespace:Skk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* Taken from https://github.com/ueno/libskk | ||
* (libskk/libskk/key-event.vala) | ||
* errordomain is removed because ctags is not ready to parse it. | ||
*/ | ||
|
||
/* | ||
* Copyright (C) 2011-2018 Daiki Ueno <ueno@gnu.org> | ||
* Copyright (C) 2011-2018 Red Hat, Inc. | ||
* | ||
* This program 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. | ||
* | ||
* This program 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/>. | ||
*/ | ||
using Gee; | ||
|
||
namespace Skk { | ||
/** | ||
* A set of bit-flags to indicate the state of modifier keys. | ||
*/ | ||
[Flags] | ||
public enum ModifierType { | ||
NONE = 0, | ||
SHIFT_MASK = 1 << 0, | ||
LOCK_MASK = 1 << 1, | ||
CONTROL_MASK = 1 << 2, | ||
MOD1_MASK = 1 << 3, | ||
MOD2_MASK = 1 << 4, | ||
MOD3_MASK = 1 << 5, | ||
MOD4_MASK = 1 << 6, | ||
MOD5_MASK = 1 << 7, | ||
|
||
// dummy modifiers for NICOLA | ||
LSHIFT_MASK = 1 << 22, | ||
RSHIFT_MASK = 1 << 23, | ||
USLEEP_MASK = 1 << 24, | ||
|
||
SUPER_MASK = 1 << 26, | ||
HYPER_MASK = 1 << 27, | ||
META_MASK = 1 << 28, | ||
RELEASE_MASK = 1 << 30 | ||
} | ||
|
||
/** | ||
* Object representing a key event. | ||
*/ | ||
public class KeyEvent : Object { | ||
/* ... */ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters