Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
4f48dba8
Commit
4f48dba8
authored
Aug 11, 2011
by
Anatoly Mihalchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SANKORE-147: No "m" key in the french virtual keyboard !
parent
7602a184
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
UBPlatformUtils_linux.cpp
src/frameworks/UBPlatformUtils_linux.cpp
+1
-1
UBPlatformUtils_win.cpp
src/frameworks/UBPlatformUtils_win.cpp
+1
-1
UBKeyboardPalette_linux.cpp
src/gui/UBKeyboardPalette_linux.cpp
+5
-4
No files found.
src/frameworks/UBPlatformUtils_linux.cpp
View file @
4f48dba8
...
...
@@ -248,7 +248,7 @@ const KEYBT FRENCH_LOCALE[] = {
/* j J */
KEYBT
(
0x6a
,
0x4a
),
/* k K */
KEYBT
(
0x6b
,
0x4b
),
/* l L */
KEYBT
(
0x6c
,
0x4c
),
/* m M */
KEYBT
(
0x6
b
,
0x4d
),
/* m M */
KEYBT
(
0x6
d
,
0x4d
),
/* ? % */
KEYBT
(
0xf9
,
0x25
),
/* * ? */
KEYBT
(
0x2a
,
0xb5
),
...
...
src/frameworks/UBPlatformUtils_win.cpp
View file @
4f48dba8
...
...
@@ -282,7 +282,7 @@ const KEYBT FRENCH_LOCALE[] = {
/* j J */
KEYBT
(
0x6a
,
0x4a
),
/* k K */
KEYBT
(
0x6b
,
0x4b
),
/* l L */
KEYBT
(
0x6c
,
0x4c
),
/* m M */
KEYBT
(
0x6
b
,
0x4d
),
/* m M */
KEYBT
(
0x6
d
,
0x4d
),
/* ? % */
KEYBT
(
0xf9
,
0x25
),
/* * ? */
KEYBT
(
0x2a
,
0xb5
),
...
...
src/gui/UBKeyboardPalette_linux.cpp
View file @
4f48dba8
...
...
@@ -75,6 +75,7 @@ void x11SendKey(Display *display, int keyCode, int modifiers)
void
UBKeyboardButton
::
sendUnicodeSymbol
(
unsigned
int
nSymbol1
,
unsigned
int
nSymbol2
,
bool
shift
)
{
unsigned
int
nSymbol
=
shift
?
nSymbol2
:
nSymbol1
;
// Obtain the X11 display.
Display
*
display
=
XOpenDisplay
(
0
);
if
(
display
==
NULL
)
...
...
@@ -97,6 +98,7 @@ void UBKeyboardButton::sendControlSymbol(int nSymbol)
if
(
display
==
NULL
)
return
;
KeyCode
keyCode
=
XKeysymToKeycode
(
display
,
nSymbol
);
if
(
keyCode
!=
NoSymbol
)
...
...
@@ -174,8 +176,10 @@ void setSymbolsFromButton(Display *display,
{
keySyms
[
byte_per_code
*
i
+
0
]
=
keySyms
[
byte_per_code
*
i
+
2
]
=
locale
[
nFromButton
+
i
]
->
code1
;
keySyms
[
byte_per_code
*
i
+
1
]
=
keySyms
[
byte_per_code
*
i
+
3
]
=
locale
[
nFromButton
+
i
]
->
code2
;
for
(
int
j
=
4
;
j
<
byte_per_code
;
j
++
)
keySyms
[
byte_per_code
*
i
+
j
]
=
NoSymbol
;
}
...
...
@@ -193,11 +197,8 @@ void UBKeyboardPalette::onLocaleChanged(UBKeyboardLocale* locale)
setSymbolsFromButton
(
display
,
*
locale
,
byte_per_code
,
min_keycodes
+
41
,
0
,
1
);
setSymbolsFromButton
(
display
,
*
locale
,
byte_per_code
,
min_keycodes
+
2
,
1
,
12
);
setSymbolsFromButton
(
display
,
*
locale
,
byte_per_code
,
min_keycodes
+
16
,
13
,
12
);
setSymbolsFromButton
(
display
,
*
locale
,
byte_per_code
,
min_keycodes
+
30
,
25
,
1
2
);
setSymbolsFromButton
(
display
,
*
locale
,
byte_per_code
,
min_keycodes
+
30
,
25
,
1
1
);
setSymbolsFromButton
(
display
,
*
locale
,
byte_per_code
,
min_keycodes
+
44
,
37
,
10
);
XCloseDisplay
(
display
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment