Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
squeekboard
Commits
cd252634
Commit
cd252634
authored
Jan 28, 2020
by
Dorota Czaplejewicz
Browse files
logging: Use in merged functions
parent
de8aaa1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/keyboard.rs
View file @
cd252634
...
...
@@ -155,7 +155,10 @@ pub fn generate_keymap(
keycodes
.next
()
.expect
(
"Erase key has no keycode"
),
)
?
;
if
let
Some
(
_
)
=
keycodes
.next
()
{
eprintln!
(
"BUG: Erase key has multiple keycodes"
);
log_print!
(
logging
::
Level
::
Bug
,
"Erase key has multiple keycodes"
,
);
}
},
_
=>
{},
...
...
src/submission.rs
View file @
cd252634
...
...
@@ -21,6 +21,7 @@ use ::action::Action;
use
::
imservice
;
use
::
imservice
::
IMService
;
use
::
keyboard
::{
KeyCode
,
KeyState
,
KeyStateId
,
PressType
};
use
::
logging
;
use
::
vkeyboard
::
VirtualKeyboard
;
/// Gathers stuff defined in C or called by C
...
...
@@ -121,7 +122,10 @@ impl Submission {
|
Action
::
Erase
=>
(),
_
=>
{
eprintln!
(
"BUG: Submitted key with action other than Submit or Erase"
);
log_print!
(
logging
::
Level
::
Bug
,
"Submitted key with action other than Submit or Erase"
,
);
return
;
},
};
...
...
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