Skip to content

Commit

Permalink
Patched caret: v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWisker committed Jun 27, 2023
1 parent 39ad3f3 commit c145751
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 7 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.5.1] - 2023-06-27

Patched the bug where certain keys did not work well in the password input

### Added
- Nothing added

### Changed
- No changes

### Fixed
- The bug where certain keys did not work well in the password input

## [1.5.0] - 2023-06-27

Changed password caret so it is more symmetric
Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ message: "If you use this software in your work, or make a fork of it, please ci
authors:
- given-names: "TheWisker"
title: "Shikai Project"
version: 1.5.0
version: 1.5.1
date-released: 2023-03-31
url: "https://github.com/TheWisker/Shikai"
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shikai",
"version": "1.5.0",
"version": "1.5.1",
"description": "Modern lightdm webkit2 theme",
"keywords": [
"lightdm",
Expand Down
4 changes: 2 additions & 2 deletions src/js/Components/LoginWindow/Userbar/Password.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Password extends React.Component {
componentWillUnmount() {if (window.__is_debug != true) {lightdm.show_prompt.disconnect(this.auth_event);}}

update(e) {
if (!['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Tab', 'Alt', 'Meta', 'Control', 'F1', 'F2', 'F3', 'F4', 'F5', 'F6', 'F7', 'F8', 'F9', 'F10', 'F11', 'F12', 'OS'].includes(e.key)) {
if (!['CapsLock', 'Shift', 'ArrowUp', 'Escape', 'ContextMenu', 'AltGraph', 'Home', 'End', 'Insert', 'PageUp', 'PageDown', 'PrintScreen', 'ScrollLock', 'Pause', 'NumLock', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Tab', 'Alt', 'Meta', 'Control', 'F1', 'F2', 'F3', 'F4', 'F5', 'F6', 'F7', 'F8', 'F9', 'F10', 'F11', 'F12', 'OS'].includes(e.key)) {
if (e.which == 13) { //Enter key
if (window.__is_debug === true) {
if (this.state.value == "password") {
Expand All @@ -39,7 +39,7 @@ class Password extends React.Component {
} else if (e.which == 8 || e.which == 46) { //Backspace key or Supr key
this.setState({value: this.state.value.slice(0, -1)});
} else {
console.log(e.key);
console.log(e.key, e.keyCode);
this.setState({value: this.state.value + e.key});
}; e.preventDefault();
}
Expand Down

0 comments on commit c145751

Please sign in to comment.