Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
e57e9f5f
Commit
e57e9f5f
authored
Jul 03, 2002
by
James Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dropped a important bug fix. Now it works :-)
parent
35c5ca68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
drivers/char/keyboard.c
drivers/char/keyboard.c
+8
-6
No files found.
drivers/char/keyboard.c
View file @
e57e9f5f
...
@@ -234,22 +234,24 @@ void to_utf8(struct vc_data *vc, ushort c)
...
@@ -234,22 +234,24 @@ void to_utf8(struct vc_data *vc, ushort c)
/* maybe called when keymap is undefined, so that shiftkey release is seen */
/* maybe called when keymap is undefined, so that shiftkey release is seen */
void
compute_shiftstate
(
void
)
void
compute_shiftstate
(
void
)
{
{
int
i
,
j
,
sym
,
val
;
int
i
,
j
,
k
,
sym
,
val
;
shift_state
=
0
;
shift_state
=
0
;
memset
(
shift_down
,
0
,
sizeof
(
shift_down
));
memset
(
shift_down
,
0
,
sizeof
(
shift_down
));
for
(
i
=
0
;
i
<
SIZE
(
key_down
);
i
+=
BITS_PER_LONG
)
{
for
(
i
=
0
;
i
<
SIZE
(
key_down
);
i
++
)
{
if
(
!
key_down
[
i
/
BITS_PER_LONG
])
if
(
!
key_down
[
i
])
continue
;
continue
;
k
=
i
*
BITS_PER_LONG
;
for
(
j
=
0
;
j
<
BITS_PER_LONG
;
j
++
)
{
for
(
j
=
0
;
j
<
BITS_PER_LONG
;
j
++
,
k
++
)
{
if
(
!
test_bit
(
i
+
j
,
key_down
))
if
(
!
test_bit
(
k
,
key_down
))
continue
;
continue
;
sym
=
U
(
plain_map
[
i
+
j
]);
sym
=
U
(
plain_map
[
k
]);
if
(
KTYP
(
sym
)
!=
KT_SHIFT
&&
KTYP
(
sym
)
!=
KT_SLOCK
)
if
(
KTYP
(
sym
)
!=
KT_SHIFT
&&
KTYP
(
sym
)
!=
KT_SLOCK
)
continue
;
continue
;
...
...
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