mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Browser Hotkey Conflicts (#1697)
* code hotkey to N, move superscript hotkey to Y ctrl A S D F G H are all taken, CTRL Q is traditionally to remove formatting and should be reserved for that. CTRL W E R T are also all taken. CTRL Z X C V are taken so all of the first 4/5 keys of each row except Q are inaccessible. * strike through conflict, update text * fixed underline command * added ALTSHIFT, browser documentation * underline ALTSHIFT Q it leaves the Q character which is considered a bug but before this pull underline was not working entirely so this is progress * update text * ALTSHIFT is treated as a command * added eighth command, ALTSHIFT+W adds two spaces * CTRL+Y to toggle case on text_edit demo * better code * Revised Menu * fix dead link * Update lib.rs * Update easy_mark_editor.rs * Update egui/src/data/input.rs Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com> * update * reverted variables used for debugging * fixed labels hotkey conflict * comments * fmt * cargo fmt * Nice hotkey menu Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
@@ -200,7 +200,7 @@ impl State {
|
||||
let is_mac_cmd = cfg!(target_os = "macos")
|
||||
&& (self.egui_input.modifiers.ctrl || self.egui_input.modifiers.mac_cmd);
|
||||
|
||||
if is_printable_char(*ch) && !is_mac_cmd {
|
||||
if is_printable_char(*ch) && !is_mac_cmd && !self.egui_input.modifiers.alt {
|
||||
self.egui_input
|
||||
.events
|
||||
.push(egui::Event::Text(ch.to_string()));
|
||||
|
||||
Reference in New Issue
Block a user