Skip to content
This repository was archived by the owner on Apr 6, 2020. It is now read-only.

Add keymap for keys with shift modifier #47

Merged
merged 1 commit into from
Jun 14, 2016

Conversation

nxnfufunezn
Copy link
Contributor

No description provided.

@nxnfufunezn nxnfufunezn changed the title Add keymap for Shift keys Add keymap for keys with shift modifier Jun 12, 2016
@nxnfufunezn nxnfufunezn force-pushed the master branch 3 times, most recently from 7e8808f to f391ed2 Compare June 12, 2016 21:43

pub struct Keyboard;

impl Keyboard {
pub fn handle_keys(&self, scancode: usize) {
if scancode <= 59 {
kprint!("{}", KBDUS[scancode] as char);
let state = STATE.lock();
if state.shift ^ state.caps {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this is the expected behavior for caps & shift being pressed? I don't really know if there is a set standard, but on Mac OS X when caps lock is on the key pressed is always caps.

Copy link
Contributor Author

@nxnfufunezn nxnfufunezn Jun 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC mac caps lock works differently that's why...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh, weird.

@steveklabnik
Copy link
Member

This needs to be rebased due to lockfiles, would you mind doing so? Thanks!

@nxnfufunezn
Copy link
Contributor Author

@steveklabnik done!

@steveklabnik steveklabnik merged commit 352357e into intermezzOS:master Jun 14, 2016
@steveklabnik
Copy link
Member

Thanks! :D

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants